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
- MimeTypeMapper.cs
- Thread.cs
- XmlExtensionFunction.cs
- TypeElementCollection.cs
- ServiceOperation.cs
- CodeAttributeDeclarationCollection.cs
- SearchForVirtualItemEventArgs.cs
- TypeDescriptor.cs
- Enum.cs
- CodeArrayIndexerExpression.cs
- MetadataConversionError.cs
- XmlSerializer.cs
- EraserBehavior.cs
- SessionPageStatePersister.cs
- OrderingExpression.cs
- ResourceDescriptionAttribute.cs
- FloaterParaClient.cs
- BaseTemplateParser.cs
- AttachmentService.cs
- CoTaskMemHandle.cs
- StateItem.cs
- HtmlInputText.cs
- ConnectionProviderAttribute.cs
- Deserializer.cs
- TextDecorationUnitValidation.cs
- AssociationEndMember.cs
- AnnotationComponentChooser.cs
- CompleteWizardStep.cs
- FormViewCommandEventArgs.cs
- HttpPostedFile.cs
- DetailsView.cs
- HtmlInputFile.cs
- TreeWalkHelper.cs
- ManagedFilter.cs
- _Events.cs
- XamlContextStack.cs
- SignatureResourcePool.cs
- NavigationPropertyAccessor.cs
- ClientFormsIdentity.cs
- GlobalItem.cs
- ExtensibleClassFactory.cs
- SystemFonts.cs
- BaseTemplateParser.cs
- MailAddressParser.cs
- TimeSpanSecondsConverter.cs
- SqlNotificationEventArgs.cs
- DNS.cs
- TextFormatterContext.cs
- MailMessage.cs
- DataSourceProvider.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- DataSourceXmlSerializationAttribute.cs
- RoleManagerModule.cs
- BoolExpression.cs
- DependencyPropertyValueSerializer.cs
- DataGridViewCellStateChangedEventArgs.cs
- Transform.cs
- TypedReference.cs
- Transform3D.cs
- TypeDescriptionProviderAttribute.cs
- TextBoxView.cs
- CornerRadiusConverter.cs
- TableLayoutColumnStyleCollection.cs
- ConfigErrorGlyph.cs
- DBSchemaTable.cs
- ContentControl.cs
- Double.cs
- SimpleRecyclingCache.cs
- ApplicationContext.cs
- ColorKeyFrameCollection.cs
- XmlSchemaExternal.cs
- OdbcUtils.cs
- UshortList2.cs
- DataGridViewCellStyle.cs
- XDeferredAxisSource.cs
- entityreference_tresulttype.cs
- COM2IProvidePropertyBuilderHandler.cs
- DelayDesigner.cs
- SettingsBindableAttribute.cs
- DataGridViewLayoutData.cs
- CodeNamespaceImportCollection.cs
- DesignerOptionService.cs
- StringStorage.cs
- PartitionResolver.cs
- ComplusTypeValidator.cs
- DBParameter.cs
- AllowedAudienceUriElement.cs
- NativeMethods.cs
- Part.cs
- NameValueSectionHandler.cs
- ApplicationException.cs
- TabControlAutomationPeer.cs
- Helper.cs
- ObjectDisposedException.cs
- ClientTarget.cs
- CssStyleCollection.cs
- DispatcherFrame.cs
- ItemCollection.cs
- ConfigurationManagerInternal.cs
- ScriptBehaviorDescriptor.cs