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
- XPathDescendantIterator.cs
- MatrixTransform3D.cs
- MatrixValueSerializer.cs
- Vector.cs
- RadioButtonPopupAdapter.cs
- LoginCancelEventArgs.cs
- ScriptControlDescriptor.cs
- TimeSpanValidatorAttribute.cs
- TableItemProviderWrapper.cs
- SiteMapHierarchicalDataSourceView.cs
- MimeBasePart.cs
- Activity.cs
- SafeArrayRankMismatchException.cs
- SystemTcpConnection.cs
- TextSpanModifier.cs
- BroadcastEventHelper.cs
- ReferenceEqualityComparer.cs
- ListBoxItem.cs
- FtpWebResponse.cs
- CodeSnippetExpression.cs
- AssertFilter.cs
- StartUpEventArgs.cs
- _MultipleConnectAsync.cs
- PerspectiveCamera.cs
- ConfigurationManager.cs
- ObjectItemCollection.cs
- MetadataException.cs
- ExpressionBindings.cs
- SmiMetaData.cs
- HtmlForm.cs
- HMACMD5.cs
- ListView.cs
- ModifiableIteratorCollection.cs
- WindowsAuthenticationEventArgs.cs
- BlurBitmapEffect.cs
- DescendantBaseQuery.cs
- ChannelPoolSettings.cs
- SiteMapDataSourceView.cs
- XPathNavigator.cs
- TypeListConverter.cs
- UIElement.cs
- dataSvcMapFileLoader.cs
- ArglessEventHandlerProxy.cs
- ClientEventManager.cs
- Int16AnimationUsingKeyFrames.cs
- OdbcPermission.cs
- XmlReaderDelegator.cs
- _Win32.cs
- DataGridCommandEventArgs.cs
- NamedPipeProcessProtocolHandler.cs
- KeyNotFoundException.cs
- WindowsGraphics.cs
- PropertyGeneratedEventArgs.cs
- SAPIEngineTypes.cs
- GenericWebPart.cs
- SafeFindHandle.cs
- _HeaderInfo.cs
- XhtmlMobileTextWriter.cs
- LockCookie.cs
- hwndwrapper.cs
- TextServicesContext.cs
- PageClientProxyGenerator.cs
- XsltSettings.cs
- XPathEmptyIterator.cs
- RefType.cs
- Signature.cs
- CodeMemberEvent.cs
- Matrix.cs
- SEHException.cs
- AccessedThroughPropertyAttribute.cs
- GeometryConverter.cs
- VisualTarget.cs
- JumpTask.cs
- ControlType.cs
- DBSqlParserTableCollection.cs
- PostBackOptions.cs
- LogPolicy.cs
- SoapSchemaMember.cs
- UserValidatedEventArgs.cs
- RowSpanVector.cs
- ReadOnlyHierarchicalDataSource.cs
- Registry.cs
- Ops.cs
- WorkflowViewManager.cs
- SafeRightsManagementSessionHandle.cs
- WebUtil.cs
- WebZone.cs
- ToolStripContentPanelRenderEventArgs.cs
- StringPropertyBuilder.cs
- ResXDataNode.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- GridItemCollection.cs
- XamlParser.cs
- SchemaRegistration.cs
- ReadOnlyCollectionBase.cs
- ZeroOpNode.cs
- ModulesEntry.cs
- UserValidatedEventArgs.cs
- SqlProvider.cs
- SwitchAttribute.cs