Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / commands / CommandLibraryHelper.cs / 1 / CommandLibraryHelper.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Set of helpers used by all Commands. // // History: // 02/28/2004 : marka - Created // //--------------------------------------------------------------------------- using System; using System.Security; using System.Security.Permissions; using System.Windows.Input; using MS.Internal.PresentationCore; // for FriendAccessAllowed namespace MS.Internal { [FriendAccessAllowed] internal static class CommandLibraryHelper { internal static RoutedUICommand CreateUICommand(string name, Type ownerType, byte commandId, PermissionSet ps) { RoutedUICommand routedUICommand; if (ps != null) { routedUICommand = new SecureUICommand(ps, name, ownerType, commandId); } else { routedUICommand = new RoutedUICommand(name, ownerType, commandId); } routedUICommand.AreInputGesturesDelayLoaded = true; return routedUICommand; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Set of helpers used by all Commands. // // History: // 02/28/2004 : marka - Created // //--------------------------------------------------------------------------- using System; using System.Security; using System.Security.Permissions; using System.Windows.Input; using MS.Internal.PresentationCore; // for FriendAccessAllowed namespace MS.Internal { [FriendAccessAllowed] internal static class CommandLibraryHelper { internal static RoutedUICommand CreateUICommand(string name, Type ownerType, byte commandId, PermissionSet ps) { RoutedUICommand routedUICommand; if (ps != null) { routedUICommand = new SecureUICommand(ps, name, ownerType, commandId); } else { routedUICommand = new RoutedUICommand(name, ownerType, commandId); } routedUICommand.AreInputGesturesDelayLoaded = true; return routedUICommand; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinqDataSourceInsertEventArgs.cs
- COM2ComponentEditor.cs
- FormsAuthenticationCredentials.cs
- PreviewPageInfo.cs
- KoreanCalendar.cs
- OraclePermissionAttribute.cs
- ConstraintConverter.cs
- CreateUserWizardStep.cs
- TreeNode.cs
- FormattedText.cs
- PropertyMetadata.cs
- XmlQueryTypeFactory.cs
- ComponentEditorForm.cs
- TCEAdapterGenerator.cs
- OutputCacheSettings.cs
- ProxyWebPartManagerDesigner.cs
- CodeDOMProvider.cs
- AspProxy.cs
- HtmlTableCell.cs
- FormViewDeleteEventArgs.cs
- SRGSCompiler.cs
- ThreadStartException.cs
- RegisteredArrayDeclaration.cs
- OneOf.cs
- XpsFontSubsetter.cs
- XmlSerializerAssemblyAttribute.cs
- Control.cs
- ChtmlTextWriter.cs
- ErrorEventArgs.cs
- BitmapInitialize.cs
- OracleNumber.cs
- MasterPageBuildProvider.cs
- _BufferOffsetSize.cs
- Filter.cs
- CaseInsensitiveHashCodeProvider.cs
- DataContext.cs
- File.cs
- PageClientProxyGenerator.cs
- XmlValidatingReaderImpl.cs
- SplineKeyFrames.cs
- SurrogateSelector.cs
- WebPartTransformerCollection.cs
- ResourceAttributes.cs
- QueueProcessor.cs
- SemanticResultValue.cs
- PolyBezierSegment.cs
- GradientBrush.cs
- XmlSchemaInfo.cs
- HostVisual.cs
- OracleCommandSet.cs
- ValueExpressions.cs
- DataGridViewIntLinkedList.cs
- XPathNavigator.cs
- MediaPlayer.cs
- RadioButtonFlatAdapter.cs
- ModulesEntry.cs
- XmlStreamNodeWriter.cs
- LinqDataSourceStatusEventArgs.cs
- InputReport.cs
- HttpClientCertificate.cs
- PropertyChange.cs
- XmlAttributeOverrides.cs
- ApplicationFileParser.cs
- StatusBar.cs
- MappedMetaModel.cs
- SmiRequestExecutor.cs
- ComUdtElementCollection.cs
- TableColumn.cs
- LocatorBase.cs
- EntityDataSourceContextCreatedEventArgs.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- OleAutBinder.cs
- WpfKnownType.cs
- DbProviderConfigurationHandler.cs
- SoapAttributeOverrides.cs
- StylusEventArgs.cs
- ContextMenu.cs
- CodeGeneratorOptions.cs
- counter.cs
- DynamicHyperLink.cs
- ItemList.cs
- VariableAction.cs
- DataMemberListEditor.cs
- MappingException.cs
- DBCommandBuilder.cs
- ControlIdConverter.cs
- Command.cs
- PerfService.cs
- ColumnWidthChangingEvent.cs
- base64Transforms.cs
- CursorInteropHelper.cs
- Nullable.cs
- ControlBuilder.cs
- NameValueFileSectionHandler.cs
- AttachInfo.cs
- ResourceDictionary.cs
- RequestCachePolicy.cs
- NamedPipeAppDomainProtocolHandler.cs
- ArrangedElement.cs
- InfoCardKeyedHashAlgorithm.cs