Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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) { if (ps != null) { return new SecureUICommand(ps, name, ownerType, commandId); } else { return new RoutedUICommand(name, ownerType, commandId); } } } } // 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
- ParsedAttributeCollection.cs
- CompilationSection.cs
- ConnectionProviderAttribute.cs
- HandlerBase.cs
- SqlUserDefinedAggregateAttribute.cs
- SqlProfileProvider.cs
- TransactionContextValidator.cs
- SessionStateSection.cs
- ClusterRegistryConfigurationProvider.cs
- XsdValidatingReader.cs
- ImageInfo.cs
- MoveSizeWinEventHandler.cs
- Currency.cs
- PathFigureCollection.cs
- PolicyException.cs
- XmlNamespaceMapping.cs
- BevelBitmapEffect.cs
- ObjectIDGenerator.cs
- _OverlappedAsyncResult.cs
- FixedPosition.cs
- MultiTrigger.cs
- XmlDataSourceNodeDescriptor.cs
- WebConvert.cs
- GraphicsContext.cs
- ProfileEventArgs.cs
- WinEventQueueItem.cs
- ControlParameter.cs
- InkPresenterAutomationPeer.cs
- FontUnitConverter.cs
- PartialCachingControl.cs
- CharEntityEncoderFallback.cs
- ImageButton.cs
- DataSourceExpressionCollection.cs
- GroupItem.cs
- SqlClientWrapperSmiStreamChars.cs
- CodeDomLocalizationProvider.cs
- InheritanceContextChangedEventManager.cs
- EdmRelationshipRoleAttribute.cs
- SubMenuStyleCollectionEditor.cs
- MissingMethodException.cs
- ProfileInfo.cs
- SharedPerformanceCounter.cs
- ExpressionEditorAttribute.cs
- SessionPageStatePersister.cs
- ProviderCommandInfoUtils.cs
- PublisherIdentityPermission.cs
- KeyValueSerializer.cs
- RTLAwareMessageBox.cs
- _DisconnectOverlappedAsyncResult.cs
- CombinedGeometry.cs
- DeviceSpecificChoice.cs
- WrappedKeySecurityTokenParameters.cs
- QueryExtender.cs
- SiteMapNodeCollection.cs
- CmsInterop.cs
- DetailsViewInsertEventArgs.cs
- InputLanguageProfileNotifySink.cs
- HttpListenerRequest.cs
- DelayedRegex.cs
- Int64Converter.cs
- FactoryId.cs
- ErrorFormatter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Typeface.cs
- WebMessageEncodingBindingElement.cs
- CorrelationManager.cs
- UITypeEditors.cs
- ReachObjectContext.cs
- DataObjectAttribute.cs
- EntityTypeEmitter.cs
- ExceptionUtil.cs
- IndexExpression.cs
- DragEvent.cs
- CodeDelegateCreateExpression.cs
- Matrix3D.cs
- XmlTextEncoder.cs
- VerificationException.cs
- ReadOnlyTernaryTree.cs
- SqlConnectionHelper.cs
- DbModificationCommandTree.cs
- DataGridViewRowEventArgs.cs
- ScriptRegistrationManager.cs
- DataGridViewCheckBoxCell.cs
- Win32SafeHandles.cs
- DoWorkEventArgs.cs
- EpmHelper.cs
- XmlSchemaGroupRef.cs
- TimelineGroup.cs
- AnnotationAdorner.cs
- CLSCompliantAttribute.cs
- ClientApiGenerator.cs
- propertytag.cs
- BaseParaClient.cs
- WebPartCatalogCloseVerb.cs
- XPathNodeIterator.cs
- CursorConverter.cs
- ResolveCriteriaApril2005.cs
- XmlNamedNodeMap.cs
- IDReferencePropertyAttribute.cs
- OAVariantLib.cs