Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- StrongNamePublicKeyBlob.cs
- ReferenceConverter.cs
- SqlCommand.cs
- QuadraticBezierSegment.cs
- ConsoleKeyInfo.cs
- PopOutPanel.cs
- UIntPtr.cs
- DataGridTable.cs
- ScriptControl.cs
- RuleSettingsCollection.cs
- InteropBitmapSource.cs
- SecurityHeaderLayout.cs
- WinFormsSecurity.cs
- Imaging.cs
- UInt32Storage.cs
- SymbolType.cs
- NotifyParentPropertyAttribute.cs
- VisemeEventArgs.cs
- AssociativeAggregationOperator.cs
- Utils.cs
- PolyQuadraticBezierSegment.cs
- DbConnectionInternal.cs
- ViewRendering.cs
- MetafileHeaderWmf.cs
- NumberFormatInfo.cs
- InputProviderSite.cs
- SqlInternalConnectionTds.cs
- AxisAngleRotation3D.cs
- QueryOperatorEnumerator.cs
- WebPartZoneBase.cs
- ping.cs
- DesignerDataParameter.cs
- WebMessageFormatHelper.cs
- ConfigXmlElement.cs
- FixedHighlight.cs
- DiagnosticsConfiguration.cs
- AccessKeyManager.cs
- CollaborationHelperFunctions.cs
- MouseGestureValueSerializer.cs
- BitmapMetadataBlob.cs
- UriTemplateTrieNode.cs
- ProgressBar.cs
- EventDriven.cs
- FastEncoder.cs
- DrawingAttributesDefaultValueFactory.cs
- DataGridTablesFactory.cs
- ToolStripOverflowButton.cs
- OrderedEnumerableRowCollection.cs
- X509Extension.cs
- Property.cs
- CacheRequest.cs
- PrimitiveSchema.cs
- _NetRes.cs
- LexicalChunk.cs
- activationcontext.cs
- OutputScope.cs
- URI.cs
- NetMsmqSecurityElement.cs
- StorageTypeMapping.cs
- ByteRangeDownloader.cs
- BmpBitmapDecoder.cs
- DeferredTextReference.cs
- ValidatorUtils.cs
- XmlQueryOutput.cs
- LostFocusEventManager.cs
- CommandPlan.cs
- AssemblyCollection.cs
- DocumentGridPage.cs
- IteratorFilter.cs
- DesignerCategoryAttribute.cs
- DiscoveryMessageSequenceCD1.cs
- serverconfig.cs
- ServiceInstallComponent.cs
- TreeViewBindingsEditorForm.cs
- CqlParserHelpers.cs
- WindowVisualStateTracker.cs
- VisualCollection.cs
- WindowsAuthenticationEventArgs.cs
- DoubleStorage.cs
- CaseExpr.cs
- CodeArrayCreateExpression.cs
- CharConverter.cs
- MessageQueueException.cs
- RewritingProcessor.cs
- sqlmetadatafactory.cs
- ListViewInsertedEventArgs.cs
- MouseCaptureWithinProperty.cs
- Event.cs
- Error.cs
- SchemaContext.cs
- TextEndOfParagraph.cs
- HttpProfileGroupBase.cs
- AVElementHelper.cs
- TimeZone.cs
- FileDialogPermission.cs
- DataQuery.cs
- UrlMappingsModule.cs
- DecoderNLS.cs
- PropertyChangedEventArgs.cs
- CatalogPartDesigner.cs