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
- ScriptingSectionGroup.cs
- FigureHelper.cs
- Int32EqualityComparer.cs
- ellipse.cs
- SqlDataSourceStatusEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- MexNamedPipeBindingCollectionElement.cs
- ValueExpressions.cs
- EncryptedReference.cs
- SqlWebEventProvider.cs
- MD5.cs
- FileDialog_Vista_Interop.cs
- WindowsListViewGroupSubsetLink.cs
- AnnotationService.cs
- ManipulationVelocities.cs
- WebPartMenu.cs
- RecognizedAudio.cs
- ListParagraph.cs
- QilStrConcatenator.cs
- BinaryReader.cs
- EventTrigger.cs
- Identifier.cs
- IgnoreDeviceFilterElement.cs
- IxmlLineInfo.cs
- EventItfInfo.cs
- XmlDataCollection.cs
- WebPartTracker.cs
- Journal.cs
- DependencyPropertyConverter.cs
- CodeAttachEventStatement.cs
- UnsafeMethods.cs
- ThicknessConverter.cs
- CultureInfoConverter.cs
- ChoiceConverter.cs
- InkCollectionBehavior.cs
- _SSPIWrapper.cs
- MimeTypeMapper.cs
- TimeoutException.cs
- XmlWrappingReader.cs
- MappingSource.cs
- DatatypeImplementation.cs
- SymmetricAlgorithm.cs
- IIS7UserPrincipal.cs
- InfocardExtendedInformationCollection.cs
- PenThreadWorker.cs
- ContentPropertyAttribute.cs
- ReflectTypeDescriptionProvider.cs
- CryptoApi.cs
- DataService.cs
- ParameterToken.cs
- EncodingTable.cs
- NTAccount.cs
- WebPartTransformer.cs
- ListViewGroupItemCollection.cs
- DataGridColumnHeadersPresenter.cs
- SQLDateTimeStorage.cs
- RepeaterItem.cs
- PaintValueEventArgs.cs
- SqlServices.cs
- TextServicesCompartment.cs
- ResourceReferenceExpression.cs
- Schema.cs
- DataGridViewCellStyleConverter.cs
- webeventbuffer.cs
- GridView.cs
- GridViewUpdateEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- StorageFunctionMapping.cs
- RepeatButtonAutomationPeer.cs
- CultureData.cs
- InheritablePropertyChangeInfo.cs
- SelectionPatternIdentifiers.cs
- WSHttpSecurityElement.cs
- Documentation.cs
- PointAnimation.cs
- FrameworkContentElement.cs
- ToolStripDropDownButton.cs
- GeneratedContractType.cs
- QueryCreatedEventArgs.cs
- StructuralCache.cs
- XmlArrayItemAttributes.cs
- DbParameterCollection.cs
- PageRequestManager.cs
- FocusTracker.cs
- OdbcEnvironment.cs
- ConnectionPoolManager.cs
- PageParser.cs
- SQlBooleanStorage.cs
- TypeGeneratedEventArgs.cs
- ErrorView.xaml.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XmlValueConverter.cs
- CharStorage.cs
- XmlElementAttribute.cs
- Scripts.cs
- SamlAction.cs
- SizeConverter.cs
- Html32TextWriter.cs
- DesignTimeTemplateParser.cs
- ServicePointManagerElement.cs