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
- BypassElementCollection.cs
- ImageSource.cs
- ControlBuilder.cs
- ModelItemExtensions.cs
- NativeMethods.cs
- DataGridViewRowCancelEventArgs.cs
- WbmpConverter.cs
- InternalConfigHost.cs
- XmlNodeChangedEventManager.cs
- LayoutTableCell.cs
- ParserOptions.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ModuleElement.cs
- TextViewElement.cs
- LinqDataSourceEditData.cs
- TokenCreationException.cs
- DeploymentSectionCache.cs
- Style.cs
- EncoderFallback.cs
- NameValueConfigurationElement.cs
- StrokeNodeOperations.cs
- QilInvoke.cs
- unsafenativemethodsother.cs
- PersistNameAttribute.cs
- DirectoryNotFoundException.cs
- UTF7Encoding.cs
- EditorPartCollection.cs
- UnhandledExceptionEventArgs.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SetStoryboardSpeedRatio.cs
- TableSectionStyle.cs
- ObjectDataSourceMethodEventArgs.cs
- SqlInternalConnectionSmi.cs
- Select.cs
- DefinitionBase.cs
- DiscoveryMessageProperty.cs
- KeyInstance.cs
- HttpCapabilitiesEvaluator.cs
- DBDataPermissionAttribute.cs
- TemplateColumn.cs
- WebBrowserProgressChangedEventHandler.cs
- PrefixQName.cs
- CaseCqlBlock.cs
- TableParaClient.cs
- ByteAnimationUsingKeyFrames.cs
- EntityDataSourceWrapper.cs
- METAHEADER.cs
- RelativeSource.cs
- PerfCounters.cs
- _TLSstream.cs
- _Connection.cs
- StrokeDescriptor.cs
- AdornerLayer.cs
- CompositeFontFamily.cs
- WindowsFormsHelpers.cs
- SendKeys.cs
- DependencyObjectProvider.cs
- EditorPartCollection.cs
- QueueProcessor.cs
- MatrixKeyFrameCollection.cs
- ObjectDataSourceWizardForm.cs
- XPathDocumentNavigator.cs
- ObjectAssociationEndMapping.cs
- Literal.cs
- IdnElement.cs
- DelegateSerializationHolder.cs
- COMException.cs
- SamlConstants.cs
- ToolTipService.cs
- DrawTreeNodeEventArgs.cs
- CheckedListBox.cs
- AncillaryOps.cs
- CommandDevice.cs
- GridViewRowPresenterBase.cs
- CodeCommentStatementCollection.cs
- DataGridColumn.cs
- XmlObjectSerializer.cs
- ReliableChannelBinder.cs
- SafeArrayRankMismatchException.cs
- HashAlgorithm.cs
- TextRangeAdaptor.cs
- DefaultProxySection.cs
- ServiceThrottlingBehavior.cs
- IDQuery.cs
- SmtpException.cs
- WebPartMenuStyle.cs
- BamlStream.cs
- HtmlInputCheckBox.cs
- OutputCacheProfile.cs
- RegionData.cs
- TrackingAnnotationCollection.cs
- GridSplitter.cs
- Int32AnimationBase.cs
- KeyboardNavigation.cs
- UnmanagedHandle.cs
- Win32.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- VectorConverter.cs
- DecimalConverter.cs
- DirectoryInfo.cs