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
- ExpressionPrefixAttribute.cs
- FormsAuthenticationUser.cs
- MachineKeyConverter.cs
- ReadOnlyCollection.cs
- ServiceNameCollection.cs
- XmlSchemaImport.cs
- SystemIPInterfaceStatistics.cs
- TextModifier.cs
- DataGridViewTextBoxCell.cs
- DummyDataSource.cs
- Adorner.cs
- TextEditorSpelling.cs
- ZipPackagePart.cs
- StaticSiteMapProvider.cs
- TrueReadOnlyCollection.cs
- HwndTarget.cs
- InputGestureCollection.cs
- Content.cs
- configsystem.cs
- ParserStreamGeometryContext.cs
- UniqueSet.cs
- SwitchElementsCollection.cs
- Serializer.cs
- RadioButtonPopupAdapter.cs
- XmlCDATASection.cs
- DataService.cs
- Menu.cs
- WebHttpDispatchOperationSelectorData.cs
- LinqDataSourceView.cs
- UserControlDesigner.cs
- BoundColumn.cs
- HitTestWithGeometryDrawingContextWalker.cs
- InputMethodStateTypeInfo.cs
- Matrix3D.cs
- SqlDataSource.cs
- DefaultConfirmation.cs
- SchemaObjectWriter.cs
- HwndKeyboardInputProvider.cs
- ExtendedPropertyCollection.cs
- CacheDependency.cs
- EntityTransaction.cs
- CodeCompileUnit.cs
- errorpatternmatcher.cs
- PropertyNames.cs
- AffineTransform3D.cs
- XmlUtil.cs
- HttpServerVarsCollection.cs
- WhitespaceRuleReader.cs
- FlowDocumentPage.cs
- DataGridViewColumnTypePicker.cs
- PageRanges.cs
- PageFunction.cs
- SchemaElementLookUpTableEnumerator.cs
- RijndaelManaged.cs
- BehaviorDragDropEventArgs.cs
- RealizationContext.cs
- StreamWriter.cs
- IssuedTokenClientElement.cs
- datacache.cs
- MsmqChannelListenerBase.cs
- AsyncOperation.cs
- EdmToObjectNamespaceMap.cs
- Propagator.cs
- RuleInfoComparer.cs
- WebPartUtil.cs
- ButtonFlatAdapter.cs
- SqlUdtInfo.cs
- CacheDependency.cs
- Point.cs
- RepeaterItemCollection.cs
- ForEachDesigner.xaml.cs
- WebPartAuthorizationEventArgs.cs
- PrintDialogException.cs
- ControlPaint.cs
- ClientConfigPaths.cs
- _BasicClient.cs
- DropTarget.cs
- ResourceDictionary.cs
- WebAdminConfigurationHelper.cs
- LayoutDump.cs
- Keyboard.cs
- ProtocolElementCollection.cs
- Listbox.cs
- ConfigurationManagerHelper.cs
- EventProviderBase.cs
- ProjectionRewriter.cs
- SqlUDTStorage.cs
- PatternMatcher.cs
- FrameworkElement.cs
- CompensationToken.cs
- TraceContextEventArgs.cs
- QueuePathEditor.cs
- ErrorProvider.cs
- ObjectTag.cs
- EditingCoordinator.cs
- SwitchAttribute.cs
- ConnectionPointCookie.cs
- PieceDirectory.cs
- SafeArrayTypeMismatchException.cs
- NavigationHelper.cs