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
- PointAnimation.cs
- WindowsListView.cs
- CompositeFontFamily.cs
- UIElement.cs
- MenuItem.cs
- Rectangle.cs
- input.cs
- TraceXPathNavigator.cs
- ServerTooBusyException.cs
- EntityWithChangeTrackerStrategy.cs
- XmlTextReaderImpl.cs
- XmlSchemaSet.cs
- SR.Designer.cs
- DrawingContextWalker.cs
- RewritingSimplifier.cs
- LocalizationParserHooks.cs
- TreeView.cs
- Frame.cs
- AsyncOperation.cs
- DataTableTypeConverter.cs
- InputEventArgs.cs
- IListConverters.cs
- WebPartPersonalization.cs
- ToolStrip.cs
- DataControlPagerLinkButton.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- SqlDelegatedTransaction.cs
- ProfileGroupSettingsCollection.cs
- BamlBinaryReader.cs
- MemberCollection.cs
- RepeatInfo.cs
- SignedPkcs7.cs
- ResourceAssociationSetEnd.cs
- TaskHelper.cs
- ExceptionAggregator.cs
- ConnectionStringsExpressionBuilder.cs
- SiteOfOriginContainer.cs
- HttpHostedTransportConfiguration.cs
- TypeUtil.cs
- EncryptedPackage.cs
- HtmlInputText.cs
- TraceListeners.cs
- CodeSubDirectory.cs
- DbParameterCollectionHelper.cs
- ZipIOLocalFileDataDescriptor.cs
- StyleBamlRecordReader.cs
- BlurEffect.cs
- ManifestResourceInfo.cs
- HttpPostedFileBase.cs
- TransactionManager.cs
- ShutDownListener.cs
- DebugController.cs
- SafeNativeMethodsOther.cs
- ISAPIRuntime.cs
- WaitHandle.cs
- PrePostDescendentsWalker.cs
- ChannelSinkStacks.cs
- AsyncOperation.cs
- TableAdapterManagerGenerator.cs
- IdleTimeoutMonitor.cs
- PointCollection.cs
- HtmlControlPersistable.cs
- MasterPageParser.cs
- StringBlob.cs
- ArcSegment.cs
- DecoderExceptionFallback.cs
- CommandTreeTypeHelper.cs
- ErrorTableItemStyle.cs
- DesignTimeVisibleAttribute.cs
- DeferredReference.cs
- ThreadAttributes.cs
- Vertex.cs
- PrintDialogException.cs
- RangeContentEnumerator.cs
- ListSortDescriptionCollection.cs
- TreeViewTemplateSelector.cs
- SetStoryboardSpeedRatio.cs
- Drawing.cs
- XsltSettings.cs
- CodeTypeConstructor.cs
- EnumUnknown.cs
- AssemblyBuilderData.cs
- TemplateDefinition.cs
- SyntaxCheck.cs
- Expr.cs
- ThreadStartException.cs
- rsa.cs
- sqlcontext.cs
- BamlBinaryWriter.cs
- ProtocolViolationException.cs
- TextTreeUndoUnit.cs
- ComplexType.cs
- Lookup.cs
- XmlValidatingReader.cs
- TemplateControlCodeDomTreeGenerator.cs
- SqlExpressionNullability.cs
- VariableReference.cs
- XPathMultyIterator.cs
- StaticSiteMapProvider.cs
- WebPartTransformerAttribute.cs