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
- MemberProjectionIndex.cs
- COM2ICategorizePropertiesHandler.cs
- SimpleMailWebEventProvider.cs
- MultitargetingHelpers.cs
- ScriptComponentDescriptor.cs
- Attributes.cs
- JsonObjectDataContract.cs
- HttpValueCollection.cs
- DefaultValueTypeConverter.cs
- DataServiceRequest.cs
- PolyBezierSegmentFigureLogic.cs
- ProcessProtocolHandler.cs
- LifetimeServices.cs
- NumericUpDownAccelerationCollection.cs
- ConfigErrorGlyph.cs
- StatusBarPanelClickEvent.cs
- Predicate.cs
- AddressUtility.cs
- ListenerElementsCollection.cs
- CheckedPointers.cs
- ComponentGuaranteesAttribute.cs
- Expression.DebuggerProxy.cs
- RawStylusInputReport.cs
- CompiledQuery.cs
- ExecutionContext.cs
- ScriptingProfileServiceSection.cs
- BitmapEffect.cs
- SrgsGrammar.cs
- SynchronizedDispatch.cs
- CompilationSection.cs
- XmlDeclaration.cs
- XmlNamedNodeMap.cs
- StateManagedCollection.cs
- EntityDataSourceConfigureObjectContext.cs
- BuildProviderUtils.cs
- InvalidateEvent.cs
- SplineQuaternionKeyFrame.cs
- MissingMethodException.cs
- PrinterUnitConvert.cs
- SimpleMailWebEventProvider.cs
- DataContractJsonSerializer.cs
- TextMarkerSource.cs
- KnownColorTable.cs
- ActionItem.cs
- FunctionDefinition.cs
- ObjectDataSourceMethodEventArgs.cs
- CommonDialog.cs
- SchemaImporter.cs
- EntityTransaction.cs
- WebPartCancelEventArgs.cs
- ContentWrapperAttribute.cs
- DescendantBaseQuery.cs
- StatusBarPanelClickEvent.cs
- ClonableStack.cs
- AnimationException.cs
- LinearKeyFrames.cs
- DesignerSerializerAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- DefaultCompensation.cs
- IdentityNotMappedException.cs
- Pkcs7Recipient.cs
- StylusPointDescription.cs
- AppDomainAttributes.cs
- MetadataItemEmitter.cs
- VideoDrawing.cs
- TableRow.cs
- BooleanFunctions.cs
- Brush.cs
- MenuAutomationPeer.cs
- LambdaExpression.cs
- MergePropertyDescriptor.cs
- AttributeParameterInfo.cs
- HtmlElementCollection.cs
- PathSegmentCollection.cs
- ConfigurationException.cs
- CurrentChangingEventManager.cs
- CollectionDataContractAttribute.cs
- NamespaceList.cs
- TextElementCollection.cs
- TimeZone.cs
- MsmqElementBase.cs
- MouseEvent.cs
- BitmapData.cs
- SHA384Managed.cs
- AttachedPropertyBrowsableAttribute.cs
- DesignerAttribute.cs
- PrtTicket_Public_Simple.cs
- DocumentXPathNavigator.cs
- GeometryCollection.cs
- XmlAttributeAttribute.cs
- AutomationFocusChangedEventArgs.cs
- PenLineCapValidation.cs
- SymbolPair.cs
- ConvertTextFrag.cs
- LinkedResource.cs
- RecognizerStateChangedEventArgs.cs
- SafeReversePInvokeHandle.cs
- ScrollableControlDesigner.cs
- DataSourceSelectArguments.cs
- Visual3D.cs