Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / commands / CommandLibraryHelper.cs / 1 / 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
- ServerIdentity.cs
- StandardOleMarshalObject.cs
- InputProcessorProfiles.cs
- BinaryParser.cs
- Itemizer.cs
- InkCanvas.cs
- ManagedIStream.cs
- BindingValueChangedEventArgs.cs
- BufferAllocator.cs
- ColumnHeaderConverter.cs
- SocketInformation.cs
- OleDbInfoMessageEvent.cs
- DatatypeImplementation.cs
- XsltException.cs
- Error.cs
- ListItemCollection.cs
- ProjectionCamera.cs
- AsyncPostBackTrigger.cs
- DictionaryKeyPropertyAttribute.cs
- KnownBoxes.cs
- BookmarkInfo.cs
- DependencyPropertyDescriptor.cs
- HttpApplicationFactory.cs
- XmlQueryCardinality.cs
- Part.cs
- PageBuildProvider.cs
- VariableDesigner.xaml.cs
- XmlLangPropertyAttribute.cs
- StreamWriter.cs
- CoreSwitches.cs
- NavigationExpr.cs
- Soap.cs
- ProvidersHelper.cs
- COSERVERINFO.cs
- Variant.cs
- FixedSOMImage.cs
- AsymmetricAlgorithm.cs
- ObjectHelper.cs
- SignatureToken.cs
- nulltextcontainer.cs
- ConfigurationStrings.cs
- PipeStream.cs
- BaseParser.cs
- MinimizableAttributeTypeConverter.cs
- documentsequencetextcontainer.cs
- Int32Rect.cs
- HelpEvent.cs
- IdentityHolder.cs
- CompiledQuery.cs
- RenderingEventArgs.cs
- DbExpressionRules.cs
- CodeParameterDeclarationExpression.cs
- ThemeDictionaryExtension.cs
- arc.cs
- DirectoryLocalQuery.cs
- TextOptionsInternal.cs
- WinInetCache.cs
- QilValidationVisitor.cs
- DrawListViewItemEventArgs.cs
- JavaScriptString.cs
- DragEvent.cs
- CurrentChangedEventManager.cs
- XsdBuilder.cs
- XmlReader.cs
- SchemaUtility.cs
- TrackingProfileCache.cs
- BinaryCommonClasses.cs
- EventWaitHandleSecurity.cs
- MetadataArtifactLoaderCompositeFile.cs
- XPathExpr.cs
- QueryResponse.cs
- PartitionedDataSource.cs
- WindowsTooltip.cs
- WsatServiceCertificate.cs
- XmlSchemaInclude.cs
- MarginsConverter.cs
- WindowsClientCredential.cs
- ObjectDataSourceFilteringEventArgs.cs
- ButtonBaseAutomationPeer.cs
- HttpListenerContext.cs
- MultipleViewPattern.cs
- Msec.cs
- TextChangedEventArgs.cs
- FontStretchConverter.cs
- ControlPropertyNameConverter.cs
- NamedPipeTransportSecurityElement.cs
- XmlSchemaComplexContentRestriction.cs
- SafeRightsManagementHandle.cs
- TCEAdapterGenerator.cs
- TypeUsageBuilder.cs
- MethodBody.cs
- BezierSegment.cs
- DropSource.cs
- Line.cs
- CompressionTransform.cs
- httpapplicationstate.cs
- TypeGeneratedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- ClassHandlersStore.cs
- XpsImage.cs