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
- RegionData.cs
- ResourceContainerWrapper.cs
- SessionPageStatePersister.cs
- ProfilePropertyNameValidator.cs
- Control.cs
- DbQueryCommandTree.cs
- XmlBinaryReader.cs
- PersonalizationStateInfo.cs
- ResourcesBuildProvider.cs
- ToolStripDropDown.cs
- NullableDoubleSumAggregationOperator.cs
- SmtpMail.cs
- DynamicDataRoute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- IntegerFacetDescriptionElement.cs
- HtmlElementCollection.cs
- LambdaExpression.cs
- DataTableCollection.cs
- ApplicationDirectory.cs
- SqlTriggerAttribute.cs
- DriveNotFoundException.cs
- DBSqlParser.cs
- OutputCacheSection.cs
- HttpListenerException.cs
- UnmanagedMarshal.cs
- ContextDataSource.cs
- MenuBase.cs
- _AutoWebProxyScriptWrapper.cs
- ListViewCancelEventArgs.cs
- CodeStatementCollection.cs
- GridView.cs
- HostVisual.cs
- XmlElementList.cs
- TextEditorTyping.cs
- DataGridPagerStyle.cs
- ExchangeUtilities.cs
- ObjectHandle.cs
- HwndMouseInputProvider.cs
- DynamicResourceExtensionConverter.cs
- PerformanceCounterCategory.cs
- KernelTypeValidation.cs
- DesignerVerb.cs
- TimersDescriptionAttribute.cs
- StubHelpers.cs
- entitydatasourceentitysetnameconverter.cs
- HttpProtocolImporter.cs
- LongAverageAggregationOperator.cs
- MetaTableHelper.cs
- ProcessHost.cs
- ParentQuery.cs
- SafeEventLogWriteHandle.cs
- RootBuilder.cs
- SystemWebCachingSectionGroup.cs
- DataChangedEventManager.cs
- KeyGestureValueSerializer.cs
- VisualCollection.cs
- DataRowChangeEvent.cs
- CodeTypeDelegate.cs
- ZipIOExtraFieldElement.cs
- Fonts.cs
- ComponentEditorForm.cs
- InvokeGenerator.cs
- CodeExporter.cs
- input.cs
- DetailsViewModeEventArgs.cs
- OleDbDataAdapter.cs
- CustomWebEventKey.cs
- WeakReadOnlyCollection.cs
- ClientConvert.cs
- TrustLevelCollection.cs
- EtwTrace.cs
- ValidationError.cs
- SchemaNamespaceManager.cs
- Span.cs
- RouteCollection.cs
- ListBindableAttribute.cs
- SmtpSection.cs
- NCryptNative.cs
- DeferredTextReference.cs
- TreeView.cs
- Aes.cs
- SafeCloseHandleCritical.cs
- MemoryMappedView.cs
- WebMessageFormatHelper.cs
- VBCodeProvider.cs
- GridViewSelectEventArgs.cs
- TransportSecurityProtocol.cs
- RectangleGeometry.cs
- ScriptDescriptor.cs
- DocumentViewer.cs
- ListViewGroupConverter.cs
- AnnotationDocumentPaginator.cs
- BuildProviderUtils.cs
- WhiteSpaceTrimStringConverter.cs
- QueryStringParameter.cs
- MutexSecurity.cs
- StorageEntityContainerMapping.cs
- GenericTypeParameterBuilder.cs
- ThreadSafeList.cs
- ClaimTypeElement.cs