Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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 : 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
- ObjectSpanRewriter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- dbdatarecord.cs
- TableHeaderCell.cs
- SettingsAttributes.cs
- MonthChangedEventArgs.cs
- VersionValidator.cs
- BufferedMessageData.cs
- Polygon.cs
- EntityClassGenerator.cs
- VersionConverter.cs
- SymDocumentType.cs
- DesignerOptionService.cs
- HttpBrowserCapabilitiesWrapper.cs
- XmlSchemaInferenceException.cs
- PassportPrincipal.cs
- ForceCopyBuildProvider.cs
- contentDescriptor.cs
- TreeBuilder.cs
- ListViewDeleteEventArgs.cs
- PrintPreviewGraphics.cs
- ServerValidateEventArgs.cs
- SQLDateTime.cs
- ILGen.cs
- StandardTransformFactory.cs
- AccessDataSourceView.cs
- DoubleLink.cs
- AddingNewEventArgs.cs
- XPathMultyIterator.cs
- XmlAttributeCollection.cs
- SupportsEventValidationAttribute.cs
- DirectoryRedirect.cs
- MappingSource.cs
- Configuration.cs
- TagElement.cs
- Thumb.cs
- BrushValueSerializer.cs
- AutomationProperties.cs
- Soap12FormatExtensions.cs
- X509Certificate2.cs
- ColumnPropertiesGroup.cs
- xml.cs
- WebPartAuthorizationEventArgs.cs
- BaseDataBoundControlDesigner.cs
- SqlNodeAnnotations.cs
- GroupBox.cs
- SqlDataRecord.cs
- UInt64Converter.cs
- Message.cs
- RowsCopiedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- UnmanagedHandle.cs
- BindingExpressionUncommonField.cs
- WindowsTitleBar.cs
- DirectionalLight.cs
- MessageEncodingBindingElementImporter.cs
- WaitForChangedResult.cs
- CustomWebEventKey.cs
- FilterableAttribute.cs
- Message.cs
- CompositeDuplexBindingElementImporter.cs
- XamlStream.cs
- DataBoundControlAdapter.cs
- SqlAggregateChecker.cs
- Int32Storage.cs
- DataServiceResponse.cs
- SchemaCollectionPreprocessor.cs
- XamlFilter.cs
- MethodBuilderInstantiation.cs
- MDIClient.cs
- initElementDictionary.cs
- HtmlInputControl.cs
- BigInt.cs
- Triplet.cs
- XsdValidatingReader.cs
- BinaryUtilClasses.cs
- XmlHierarchicalEnumerable.cs
- HiddenField.cs
- login.cs
- CompiledELinqQueryState.cs
- TimeSpanOrInfiniteValidator.cs
- DecoderExceptionFallback.cs
- ColorDialog.cs
- Html32TextWriter.cs
- X509Extension.cs
- SoapAttributeOverrides.cs
- sqlstateclientmanager.cs
- PointAnimationBase.cs
- DataGridCaption.cs
- ProfileGroupSettingsCollection.cs
- DbTransaction.cs
- ParameterModifier.cs
- nulltextnavigator.cs
- FunctionQuery.cs
- StringValidator.cs
- MaterialGroup.cs
- InfoCardKeyedHashAlgorithm.cs
- PropertyDescriptors.cs
- ADMembershipProvider.cs
- SecurityTokenValidationException.cs