Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UserControl.cs
- NotifyInputEventArgs.cs
- Exceptions.cs
- LocatorManager.cs
- XmlSchemaSequence.cs
- ModelItemExtensions.cs
- DefaultBindingPropertyAttribute.cs
- CryptoHandle.cs
- VectorConverter.cs
- indexingfiltermarshaler.cs
- ErrorHandler.cs
- DetailsViewPagerRow.cs
- _BasicClient.cs
- CodeAttributeDeclarationCollection.cs
- clipboard.cs
- WindowsPen.cs
- CharacterBufferReference.cs
- StringFormat.cs
- RadioButton.cs
- ControlPropertyNameConverter.cs
- PropertyMapper.cs
- Figure.cs
- WindowsProgressbar.cs
- CompiledAction.cs
- MenuItemBindingCollection.cs
- EventEntry.cs
- DashStyle.cs
- AlternateView.cs
- MaskedTextProvider.cs
- StorageSetMapping.cs
- ClientSettings.cs
- X509Extension.cs
- LayoutManager.cs
- Cursors.cs
- WebEventCodes.cs
- Sql8ConformanceChecker.cs
- IntSumAggregationOperator.cs
- NonceCache.cs
- CacheVirtualItemsEvent.cs
- Rect3D.cs
- IdentifierService.cs
- WindowsStatic.cs
- ExtendedProperty.cs
- SynchronizationHandlesCodeDomSerializer.cs
- WorkflowInlining.cs
- CheckedListBox.cs
- ToggleProviderWrapper.cs
- SpanIndex.cs
- EncoderParameter.cs
- AuthorizationSection.cs
- ListViewDeleteEventArgs.cs
- SmiTypedGetterSetter.cs
- Stylesheet.cs
- WorkflowView.cs
- SafeNativeMethods.cs
- ScrollChangedEventArgs.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SHA1.cs
- ClientCultureInfo.cs
- ISessionStateStore.cs
- ExpressionReplacer.cs
- ListView.cs
- ListViewItemEventArgs.cs
- ResourceDictionaryCollection.cs
- unsafenativemethodstextservices.cs
- DragCompletedEventArgs.cs
- XsltException.cs
- CollectionViewGroup.cs
- SAPICategories.cs
- ScriptControl.cs
- basemetadatamappingvisitor.cs
- ProviderIncompatibleException.cs
- StylusPointProperty.cs
- BinaryConverter.cs
- X500Name.cs
- ConstraintConverter.cs
- RsaEndpointIdentity.cs
- CSharpCodeProvider.cs
- SqlConnectionStringBuilder.cs
- TabControlCancelEvent.cs
- M3DUtil.cs
- ActionMessageFilterTable.cs
- RemoteWebConfigurationHostServer.cs
- PrinterResolution.cs
- WebHttpBindingCollectionElement.cs
- CharacterString.cs
- RuleAttributes.cs
- ParameterBuilder.cs
- CallSite.cs
- clipboard.cs
- BamlStream.cs
- ContentIterators.cs
- DataSvcMapFile.cs
- SchemaAttDef.cs
- RelationshipConverter.cs
- OperandQuery.cs
- HttpResponseHeader.cs
- ServicePointManager.cs
- RtfControls.cs
- XPathNode.cs