Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / commands / CommandLibraryHelper.cs / 1305600 / 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
- FrameworkElementAutomationPeer.cs
- GridItemPattern.cs
- PropertyTabChangedEvent.cs
- HttpRawResponse.cs
- SecurityContextSecurityToken.cs
- NestedContainer.cs
- ListView.cs
- Sequence.cs
- ProviderConnectionPointCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- GeneratedCodeAttribute.cs
- BinHexEncoding.cs
- XmlHierarchicalDataSourceView.cs
- FontStretchConverter.cs
- Keywords.cs
- XmlNodeChangedEventManager.cs
- TableLayoutPanel.cs
- RunWorkerCompletedEventArgs.cs
- TreeNodeBinding.cs
- Lazy.cs
- PaintEvent.cs
- TrackingMemoryStreamFactory.cs
- StandardCommands.cs
- WebPartDisplayModeEventArgs.cs
- DocumentCollection.cs
- CodeTypeDelegate.cs
- SchemaImporter.cs
- LocalizableResourceBuilder.cs
- XmlNamespaceManager.cs
- MenuEventArgs.cs
- DataList.cs
- DetailsView.cs
- AssemblyCollection.cs
- SelectionItemProviderWrapper.cs
- ProtocolsConfiguration.cs
- DownloadProgressEventArgs.cs
- ParameterBuilder.cs
- TypeConverterHelper.cs
- CodeMemberMethod.cs
- GPPOINTF.cs
- ExecutionScope.cs
- Stacktrace.cs
- TypeConverterHelper.cs
- ValidationException.cs
- EnumerableRowCollectionExtensions.cs
- HwndSubclass.cs
- Normalization.cs
- WebPartManager.cs
- SqlCacheDependencyDatabaseCollection.cs
- FileDialogCustomPlace.cs
- Track.cs
- Membership.cs
- WebPartUserCapability.cs
- Latin1Encoding.cs
- Version.cs
- Fonts.cs
- Quaternion.cs
- CommonDialog.cs
- PageAsyncTaskManager.cs
- odbcmetadatacollectionnames.cs
- _BaseOverlappedAsyncResult.cs
- PolicyChain.cs
- FloaterBaseParaClient.cs
- PropertyMetadata.cs
- ContextMenuService.cs
- SplitterPanelDesigner.cs
- UrlRoutingModule.cs
- DbMetaDataColumnNames.cs
- FixedPageProcessor.cs
- CodeAttributeArgument.cs
- ElapsedEventArgs.cs
- WebGetAttribute.cs
- ConditionalAttribute.cs
- Registry.cs
- ToolStripDropDownClosingEventArgs.cs
- InstanceOwnerQueryResult.cs
- MonitoringDescriptionAttribute.cs
- CultureTable.cs
- EventSinkHelperWriter.cs
- WSDualHttpBindingCollectionElement.cs
- AutomationPropertyInfo.cs
- ImpersonationContext.cs
- UdpDiscoveryMessageFilter.cs
- VerificationAttribute.cs
- HtmlTextArea.cs
- ProjectionCamera.cs
- StylusPointPropertyInfo.cs
- AssemblyResourceLoader.cs
- Pen.cs
- LongMinMaxAggregationOperator.cs
- AppDomainProtocolHandler.cs
- COM2ColorConverter.cs
- SqlXml.cs
- BooleanKeyFrameCollection.cs
- QueryConverter.cs
- UnaryOperationBinder.cs
- DesignerVerb.cs
- WebUtility.cs
- SessionViewState.cs
- TemplateApplicationHelper.cs