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
- StyleCollection.cs
- ListItemCollection.cs
- SQLDecimal.cs
- DetailsViewCommandEventArgs.cs
- ClientSettingsStore.cs
- LocalizationComments.cs
- wgx_sdk_version.cs
- FailedToStartupUIException.cs
- JsonCollectionDataContract.cs
- BitmapEffectGroup.cs
- COM2IDispatchConverter.cs
- LinearKeyFrames.cs
- XmlHierarchicalDataSourceView.cs
- XmlAttributeOverrides.cs
- AnonymousIdentificationSection.cs
- DebugControllerThread.cs
- InternalControlCollection.cs
- HuffmanTree.cs
- MoveSizeWinEventHandler.cs
- HtmlHead.cs
- IpcChannelHelper.cs
- MessageRpc.cs
- DBDataPermissionAttribute.cs
- UnsafeNativeMethods.cs
- HttpListener.cs
- Control.cs
- ArgumentElement.cs
- ContainerActivationHelper.cs
- MetadataHelper.cs
- TextElementCollectionHelper.cs
- ToolCreatedEventArgs.cs
- DisplayInformation.cs
- SqlParameterizer.cs
- EntityKeyElement.cs
- CreationContext.cs
- ImplicitInputBrush.cs
- Configuration.cs
- FormatConvertedBitmap.cs
- DataSourceBooleanViewSchemaConverter.cs
- SessionIDManager.cs
- ExceptionHandlers.cs
- OutputCacheSection.cs
- CommonDialog.cs
- AtomContentProperty.cs
- XmlDataImplementation.cs
- FilterableAttribute.cs
- Camera.cs
- CqlLexer.cs
- ReadOnlyDataSourceView.cs
- TreeViewImageKeyConverter.cs
- LayoutEngine.cs
- CodeCastExpression.cs
- documentsequencetextcontainer.cs
- PreservationFileWriter.cs
- cookie.cs
- DBBindings.cs
- DataGridColumn.cs
- TextEvent.cs
- OdbcParameterCollection.cs
- WaitForChangedResult.cs
- WebPartDisplayModeEventArgs.cs
- DoneReceivingAsyncResult.cs
- EmulateRecognizeCompletedEventArgs.cs
- UniformGrid.cs
- InvalidOperationException.cs
- ProxyWebPartManager.cs
- Schema.cs
- BlurBitmapEffect.cs
- BookmarkInfo.cs
- BitmapEffectOutputConnector.cs
- XmlRawWriter.cs
- QuaternionAnimationBase.cs
- CompressionTransform.cs
- IgnorePropertiesAttribute.cs
- MenuDesigner.cs
- SaveFileDialog.cs
- DataTrigger.cs
- IxmlLineInfo.cs
- TransactionChannelListener.cs
- OrderByLifter.cs
- ControlUtil.cs
- DataTableNewRowEvent.cs
- TextFormatterImp.cs
- CodeEntryPointMethod.cs
- shaperfactoryquerycacheentry.cs
- DataReceivedEventArgs.cs
- FileDialog_Vista_Interop.cs
- GeometryCollection.cs
- WebBrowserBase.cs
- WebPartVerbCollection.cs
- TreeViewEvent.cs
- XmlDataSourceNodeDescriptor.cs
- ConfigurationPermission.cs
- BlurEffect.cs
- HtmlTableRow.cs
- TypeNameConverter.cs
- XmlReader.cs
- PatternMatcher.cs
- DesignerEventService.cs
- connectionpool.cs