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
- DLinqDataModelProvider.cs
- FrugalMap.cs
- parserscommon.cs
- ItemChangedEventArgs.cs
- Point3DValueSerializer.cs
- RuleCache.cs
- BaseCollection.cs
- ReferentialConstraintRoleElement.cs
- TypeFieldSchema.cs
- VisemeEventArgs.cs
- TableLayout.cs
- TypeResolver.cs
- EventSinkHelperWriter.cs
- TypeInformation.cs
- VirtualizingPanel.cs
- EventSetter.cs
- Blend.cs
- HttpsHostedTransportConfiguration.cs
- Graphics.cs
- FixedTextBuilder.cs
- _ContextAwareResult.cs
- RayHitTestParameters.cs
- RepeatBehavior.cs
- FixedDocumentPaginator.cs
- SqlBulkCopyColumnMappingCollection.cs
- SchemaSetCompiler.cs
- UpdateTranslator.cs
- ScrollEventArgs.cs
- AppearanceEditorPart.cs
- Assembly.cs
- IFlowDocumentViewer.cs
- AutomationAttributeInfo.cs
- wgx_exports.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlFileEditor.cs
- ZipIOModeEnforcingStream.cs
- DateTimeConverter.cs
- EdmToObjectNamespaceMap.cs
- DbConnectionStringCommon.cs
- BindingContext.cs
- RuleValidation.cs
- HttpContext.cs
- XmlSchemaParticle.cs
- XslException.cs
- ExpandSegmentCollection.cs
- _IPv6Address.cs
- WindowsTitleBar.cs
- RouteParameter.cs
- DataGridColumnsPage.cs
- FrameworkRichTextComposition.cs
- ReturnType.cs
- RelatedImageListAttribute.cs
- FrameDimension.cs
- ProviderMetadata.cs
- ToolStripMenuItem.cs
- WebPartEditorOkVerb.cs
- ThreadBehavior.cs
- SocketPermission.cs
- TypefaceMap.cs
- RoutedCommand.cs
- SemanticResultValue.cs
- XmlRootAttribute.cs
- ReadOnlyDictionary.cs
- Config.cs
- SoapParser.cs
- SoapHeaders.cs
- ListViewInsertedEventArgs.cs
- CalloutQueueItem.cs
- SchemaSetCompiler.cs
- ToolboxDataAttribute.cs
- SmtpNtlmAuthenticationModule.cs
- DataGridViewIntLinkedList.cs
- ResourcesChangeInfo.cs
- Base64Encoder.cs
- PipeSecurity.cs
- BufferBuilder.cs
- unitconverter.cs
- SemaphoreFullException.cs
- EventRouteFactory.cs
- ChooseAction.cs
- QEncodedStream.cs
- SystemIcmpV6Statistics.cs
- PeerNameRegistration.cs
- TextSimpleMarkerProperties.cs
- DoubleAnimationClockResource.cs
- XamlContextStack.cs
- FtpWebRequest.cs
- MissingSatelliteAssemblyException.cs
- EntityDescriptor.cs
- ProvidePropertyAttribute.cs
- PageResolution.cs
- DBSqlParserColumnCollection.cs
- ItemCollectionEditor.cs
- XPathDocument.cs
- Mouse.cs
- ColorTypeConverter.cs
- HostingEnvironment.cs
- StorageAssociationSetMapping.cs
- DateTimeConverter2.cs
- SourceFileInfo.cs