Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / commands / CommandLibraryHelper.cs / 2 / 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
- SharedHttpTransportManager.cs
- EntityContainerRelationshipSet.cs
- AppDomainUnloadedException.cs
- ContourSegment.cs
- PreparingEnlistment.cs
- ListenerSingletonConnectionReader.cs
- Socket.cs
- XmlReader.cs
- EndpointAddressMessageFilter.cs
- thaishape.cs
- XmlSubtreeReader.cs
- PathFigure.cs
- TreeNodeCollection.cs
- HighContrastHelper.cs
- CopyNamespacesAction.cs
- ValidatorUtils.cs
- ListItemConverter.cs
- Html32TextWriter.cs
- UdpRetransmissionSettings.cs
- BlobPersonalizationState.cs
- Gdiplus.cs
- ListBox.cs
- LocalBuilder.cs
- MethodBuilderInstantiation.cs
- SpStreamWrapper.cs
- CompositionAdorner.cs
- Attachment.cs
- ThrowHelper.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- TagNameToTypeMapper.cs
- DynamicResourceExtensionConverter.cs
- EventLogger.cs
- DeviceSpecific.cs
- Point4D.cs
- CountAggregationOperator.cs
- RequestCacheManager.cs
- WebControlAdapter.cs
- AutomationProperties.cs
- ProfileInfo.cs
- FragmentQueryKB.cs
- TablePatternIdentifiers.cs
- ObjectItemAssemblyLoader.cs
- LassoHelper.cs
- EnvironmentPermission.cs
- Encoding.cs
- StrokeCollection.cs
- FilterableData.cs
- ConfigXmlCDataSection.cs
- WebBrowserSiteBase.cs
- ObjectSpanRewriter.cs
- RenderCapability.cs
- Line.cs
- MatrixTransform.cs
- UpdateTranslator.cs
- BitmapData.cs
- PartManifestEntry.cs
- StubHelpers.cs
- HostedElements.cs
- XPathCompiler.cs
- AssemblyResourceLoader.cs
- ResourceSet.cs
- HtmlTableRowCollection.cs
- BamlTreeNode.cs
- LoginView.cs
- ToolStripContentPanelRenderEventArgs.cs
- MetadataArtifactLoaderResource.cs
- StructuralCache.cs
- AvTrace.cs
- ChildDocumentBlock.cs
- SupportingTokenSpecification.cs
- AndCondition.cs
- RegexGroupCollection.cs
- EntityContainerAssociationSetEnd.cs
- XmlUtilWriter.cs
- RetrieveVirtualItemEventArgs.cs
- MenuStrip.cs
- Int64.cs
- HideDisabledControlAdapter.cs
- SmtpMail.cs
- MetadataAssemblyHelper.cs
- MaterializeFromAtom.cs
- ConnectionPoint.cs
- ScriptBehaviorDescriptor.cs
- QueryExpr.cs
- SiteMapNodeCollection.cs
- _ServiceNameStore.cs
- GridItemPattern.cs
- PathFigureCollection.cs
- AmbientProperties.cs
- HeaderedItemsControl.cs
- RoleManagerModule.cs
- SerializationStore.cs
- BrowserTree.cs
- RegexNode.cs
- MarshalDirectiveException.cs
- SynchronizedDispatch.cs
- XamlSerializer.cs
- ArgumentsParser.cs
- ScrollableControlDesigner.cs
- XPathNode.cs