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
- ContainerUIElement3D.cs
- TimeSpan.cs
- EdmToObjectNamespaceMap.cs
- SafeRegistryKey.cs
- _SSPIWrapper.cs
- StorageModelBuildProvider.cs
- Directory.cs
- NegotiationTokenAuthenticator.cs
- NonVisualControlAttribute.cs
- HostingEnvironment.cs
- TextSelection.cs
- CodePageUtils.cs
- DtdParser.cs
- MimeParameter.cs
- UserMapPath.cs
- Ref.cs
- TabItemWrapperAutomationPeer.cs
- Unit.cs
- ISO2022Encoding.cs
- Model3DCollection.cs
- Automation.cs
- PropVariant.cs
- PreProcessInputEventArgs.cs
- _RegBlobWebProxyDataBuilder.cs
- ProvideValueServiceProvider.cs
- TagPrefixAttribute.cs
- ExtenderControl.cs
- FileUpload.cs
- SafeNativeMethodsOther.cs
- AlternateViewCollection.cs
- FieldMetadata.cs
- XPathDocument.cs
- KeyboardNavigation.cs
- CopyOfAction.cs
- EditingCoordinator.cs
- x509utils.cs
- XDeferredAxisSource.cs
- XmlText.cs
- ConfigurationSection.cs
- UrlParameterReader.cs
- RequestTimeoutManager.cs
- AuthenticationService.cs
- ChameleonKey.cs
- TableColumnCollectionInternal.cs
- TextContainer.cs
- DataServiceQueryProvider.cs
- CommonObjectSecurity.cs
- UrlMappingsModule.cs
- MultipleCopiesCollection.cs
- COM2PropertyDescriptor.cs
- DateTimeConverter.cs
- XPathEmptyIterator.cs
- WindowsToolbar.cs
- TextTreePropertyUndoUnit.cs
- ToolStripDropDownClosedEventArgs.cs
- PeerCollaborationPermission.cs
- DrawingContextWalker.cs
- ProfileGroupSettingsCollection.cs
- BindingExpressionBase.cs
- XPathAncestorQuery.cs
- Comparer.cs
- HideDisabledControlAdapter.cs
- NestPullup.cs
- DeclaredTypeElement.cs
- ExpressionBuilder.cs
- DES.cs
- MenuCommand.cs
- TreeView.cs
- DataBindingHandlerAttribute.cs
- CodePageUtils.cs
- Floater.cs
- DropSourceBehavior.cs
- AssemblyNameEqualityComparer.cs
- ProxyWebPart.cs
- InputMethodStateChangeEventArgs.cs
- ProgressBarBrushConverter.cs
- Win32SafeHandles.cs
- ConfigPathUtility.cs
- TabItem.cs
- InheritedPropertyChangedEventArgs.cs
- MemoryStream.cs
- DataSourceExpression.cs
- ParsedAttributeCollection.cs
- XmlAttributeCollection.cs
- ConstructorExpr.cs
- SecurityTraceRecordHelper.cs
- x509store.cs
- DataRecord.cs
- SpecularMaterial.cs
- tooltip.cs
- filewebresponse.cs
- BamlLocalizer.cs
- SmtpMail.cs
- MarkupObject.cs
- WindowsAltTab.cs
- DbQueryCommandTree.cs
- MaskedTextBoxTextEditor.cs
- Stacktrace.cs
- FreezableOperations.cs
- StylusButton.cs