Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableItemPattern.cs
- PropertyTabChangedEvent.cs
- XmlSchemaImport.cs
- TopClause.cs
- Border.cs
- XmlSchemaCollection.cs
- CodeActivity.cs
- HMACSHA256.cs
- URLIdentityPermission.cs
- RTTypeWrapper.cs
- ResourceAssociationSetEnd.cs
- BooleanFacetDescriptionElement.cs
- OleAutBinder.cs
- QilParameter.cs
- Clipboard.cs
- QueryContinueDragEventArgs.cs
- VBCodeProvider.cs
- DynamicILGenerator.cs
- DataViewSettingCollection.cs
- WmlListAdapter.cs
- SiteMapNodeCollection.cs
- IChannel.cs
- DragDropManager.cs
- HelpProvider.cs
- ListViewAutomationPeer.cs
- SQLDateTime.cs
- SecurityHeaderLayout.cs
- MediaSystem.cs
- OdbcTransaction.cs
- XmlWhitespace.cs
- IISUnsafeMethods.cs
- WebPartConnectionsCloseVerb.cs
- GacUtil.cs
- sqlstateclientmanager.cs
- WebScriptMetadataMessage.cs
- IndexOutOfRangeException.cs
- OperationAbortedException.cs
- WinCategoryAttribute.cs
- XPathNodeList.cs
- BehaviorDragDropEventArgs.cs
- TrackBar.cs
- BindUriHelper.cs
- HttpGetClientProtocol.cs
- XmlWriterDelegator.cs
- SchemaSetCompiler.cs
- TrustLevelCollection.cs
- BaseParser.cs
- CompositionAdorner.cs
- MultiTrigger.cs
- QueryAsyncResult.cs
- XsltCompileContext.cs
- ISAPIApplicationHost.cs
- SchemaCollectionPreprocessor.cs
- AppDomainFactory.cs
- DbException.cs
- HttpChannelHelper.cs
- TableCell.cs
- PropertyCondition.cs
- Light.cs
- SqlFacetAttribute.cs
- NetworkInformationException.cs
- TextEncodedRawTextWriter.cs
- GlobalizationSection.cs
- VirtualPathUtility.cs
- GridErrorDlg.cs
- FontFamily.cs
- PropertyValidationContext.cs
- IconConverter.cs
- XPathNavigator.cs
- PropertyInformation.cs
- Vertex.cs
- ObjectQueryExecutionPlan.cs
- OracleConnectionStringBuilder.cs
- HttpResponse.cs
- AssemblyHash.cs
- TextDataBindingHandler.cs
- MemberProjectedSlot.cs
- InvalidCardException.cs
- WmfPlaceableFileHeader.cs
- HttpInputStream.cs
- SettingsContext.cs
- ContourSegment.cs
- SerializerProvider.cs
- ParallelEnumerable.cs
- HierarchicalDataBoundControlAdapter.cs
- ExtentCqlBlock.cs
- XmlElementElement.cs
- System.Data.OracleClient_BID.cs
- ModelEditingScope.cs
- DateTimeFormatInfo.cs
- ViewBox.cs
- PolygonHotSpot.cs
- FontDriver.cs
- Wildcard.cs
- DataIdProcessor.cs
- WebDescriptionAttribute.cs
- ElementNotAvailableException.cs
- DynamicHyperLink.cs
- Stylesheet.cs
- MarkupExtensionParser.cs