Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleCollectionConverter.cs
- InternalDispatchObject.cs
- Rect.cs
- PartitionedStreamMerger.cs
- ToolStripComboBox.cs
- TextServicesLoader.cs
- DoubleStorage.cs
- HMACSHA256.cs
- ParseHttpDate.cs
- ImageSourceValueSerializer.cs
- GACMembershipCondition.cs
- Imaging.cs
- PanelStyle.cs
- ParseHttpDate.cs
- MachineKeyValidationConverter.cs
- OdbcConnectionString.cs
- CryptoProvider.cs
- PermissionToken.cs
- EdmItemError.cs
- UnsignedPublishLicense.cs
- HostingEnvironment.cs
- EncoderParameters.cs
- MeshGeometry3D.cs
- ApplicationBuildProvider.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- NativeMethods.cs
- MsmqBindingBase.cs
- EntityUtil.cs
- ImageFormatConverter.cs
- StyleXamlTreeBuilder.cs
- Ref.cs
- DesignTimeTemplateParser.cs
- DesignSurfaceManager.cs
- JavaScriptString.cs
- iisPickupDirectory.cs
- DefaultValueTypeConverter.cs
- ValuePattern.cs
- DispatchOperationRuntime.cs
- ProviderConnectionPoint.cs
- SignatureToken.cs
- TypeSemantics.cs
- RoleServiceManager.cs
- Documentation.cs
- TextEvent.cs
- InvalidComObjectException.cs
- MulticastNotSupportedException.cs
- CodeSubDirectory.cs
- CollectionContainer.cs
- HttpCacheParams.cs
- _NegoStream.cs
- LiteralText.cs
- ManagementObjectCollection.cs
- CriticalExceptions.cs
- DesignerActionKeyboardBehavior.cs
- XmlSchemaSimpleTypeRestriction.cs
- FontDifferentiator.cs
- SamlSerializer.cs
- WindowsStreamSecurityElement.cs
- MailAddressParser.cs
- SspiNegotiationTokenAuthenticatorState.cs
- BlurBitmapEffect.cs
- Axis.cs
- BoundField.cs
- LabelDesigner.cs
- HttpBindingExtension.cs
- ProxyAssemblyNotLoadedException.cs
- NamedPermissionSet.cs
- TileBrush.cs
- CngAlgorithm.cs
- TextBlock.cs
- ReachObjectContext.cs
- UserValidatedEventArgs.cs
- FileRecordSequenceCompletedAsyncResult.cs
- __Filters.cs
- Util.cs
- ProcessHostMapPath.cs
- BlockCollection.cs
- TraversalRequest.cs
- ConfigurationValidatorBase.cs
- DataTableCollection.cs
- InputLanguageCollection.cs
- MouseWheelEventArgs.cs
- CurrencyWrapper.cs
- AssociationType.cs
- CustomWebEventKey.cs
- FloaterBaseParagraph.cs
- List.cs
- CreateUserErrorEventArgs.cs
- NodeInfo.cs
- NonBatchDirectoryCompiler.cs
- DefaultValidator.cs
- XmlSchema.cs
- QuaternionConverter.cs
- AuthorizationRule.cs
- PasswordDeriveBytes.cs
- GcHandle.cs
- InvalidOleVariantTypeException.cs
- SQLInt32.cs
- WebPartAuthorizationEventArgs.cs
- safelink.cs