Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / commands / CommandLibraryHelper.cs / 1305600 / 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
- CoreChannel.cs
- SqlRowUpdatingEvent.cs
- CompilerParameters.cs
- ApplicationSecurityManager.cs
- XmlCharCheckingWriter.cs
- WindowsFormsSynchronizationContext.cs
- PropertyValue.cs
- ParentQuery.cs
- ConfigurationManagerHelperFactory.cs
- HtmlTitle.cs
- CapabilitiesState.cs
- OutputCacheModule.cs
- MailWebEventProvider.cs
- NetCodeGroup.cs
- RegexMatch.cs
- ObjectCacheHost.cs
- StructuredTypeInfo.cs
- SizeAnimation.cs
- IdentifierElement.cs
- ColumnCollection.cs
- XmlSchemaSimpleType.cs
- StatusBarAutomationPeer.cs
- figurelength.cs
- ThreadStateException.cs
- ObjectStateManager.cs
- SiteMapHierarchicalDataSourceView.cs
- AdapterUtil.cs
- EntityRecordInfo.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- X500Name.cs
- IndexerReference.cs
- RecordManager.cs
- Error.cs
- TransformDescriptor.cs
- MessageContractAttribute.cs
- ETagAttribute.cs
- ConfigXmlText.cs
- Html32TextWriter.cs
- EnterpriseServicesHelper.cs
- TabletDeviceInfo.cs
- FormattedText.cs
- UrlMapping.cs
- WebControlToolBoxItem.cs
- StateManagedCollection.cs
- CloudCollection.cs
- InternalUserCancelledException.cs
- Opcode.cs
- Stack.cs
- ComEventsMethod.cs
- SqlTypeConverter.cs
- AspCompat.cs
- XmlDictionaryString.cs
- Main.cs
- Pen.cs
- CreateUserWizardStep.cs
- EnterpriseServicesHelper.cs
- Int32CAMarshaler.cs
- FileLoadException.cs
- RootBrowserWindowProxy.cs
- StringToken.cs
- ConstructorArgumentAttribute.cs
- PrintPreviewDialog.cs
- MonikerSyntaxException.cs
- FormViewDesigner.cs
- SiteMapDesignerDataSourceView.cs
- DisplayNameAttribute.cs
- FileIOPermission.cs
- SiteMapNodeItemEventArgs.cs
- PtsHelper.cs
- DesignerAutoFormat.cs
- Parser.cs
- Triplet.cs
- UnicastIPAddressInformationCollection.cs
- EasingKeyFrames.cs
- OracleParameterBinding.cs
- WebResourceAttribute.cs
- CodeTypeReference.cs
- WebPartCancelEventArgs.cs
- View.cs
- TaiwanLunisolarCalendar.cs
- TableDetailsCollection.cs
- OdbcEnvironment.cs
- ACE.cs
- TemplateAction.cs
- PopOutPanel.cs
- FileFormatException.cs
- SafeMILHandle.cs
- ListItemCollection.cs
- NotificationContext.cs
- StrongNameSignatureInformation.cs
- TabItemWrapperAutomationPeer.cs
- listitem.cs
- ChtmlTextWriter.cs
- FloaterBaseParaClient.cs
- DocumentReference.cs
- DesignerActionService.cs
- XmlCharCheckingReader.cs
- SyndicationLink.cs
- GridViewColumnHeaderAutomationPeer.cs
- _CookieModule.cs