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
- OracleConnectionFactory.cs
- DataRelationCollection.cs
- CompositeScriptReferenceEventArgs.cs
- UInt16Converter.cs
- WindowsFormsSectionHandler.cs
- CurrentTimeZone.cs
- DataControlFieldsEditor.cs
- ListQueryResults.cs
- AnchoredBlock.cs
- ConfigXmlDocument.cs
- CodeArrayIndexerExpression.cs
- ConstructorBuilder.cs
- BlurBitmapEffect.cs
- MsmqElementBase.cs
- ProjectedSlot.cs
- Span.cs
- EditorAttribute.cs
- PluralizationService.cs
- CriticalFinalizerObject.cs
- ReversePositionQuery.cs
- WebControlAdapter.cs
- RealizationContext.cs
- PeerReferralPolicy.cs
- LinkDescriptor.cs
- FixedTextPointer.cs
- CodeTypeDeclaration.cs
- RegexCompilationInfo.cs
- CodeAccessPermission.cs
- StrokeRenderer.cs
- FixedPage.cs
- BinaryParser.cs
- WebBrowserNavigatedEventHandler.cs
- DataColumnChangeEvent.cs
- SettingsPropertyValueCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- OperationResponse.cs
- UniqueSet.cs
- TemplateXamlTreeBuilder.cs
- RoleGroupCollectionEditor.cs
- WebPartsPersonalizationAuthorization.cs
- OleDbFactory.cs
- Message.cs
- ContractMapping.cs
- StoreConnection.cs
- EmptyControlCollection.cs
- EntityDataSourceWrapper.cs
- FileDialog.cs
- BitArray.cs
- Drawing.cs
- ImageAnimator.cs
- safelinkcollection.cs
- TypeForwardedToAttribute.cs
- FileEnumerator.cs
- PropertyInformation.cs
- CatalogPart.cs
- PerformanceCounterPermission.cs
- WinInet.cs
- WindowsIPAddress.cs
- StorageConditionPropertyMapping.cs
- RuntimeResourceSet.cs
- TypeBuilder.cs
- DictionaryEditChange.cs
- BamlTreeNode.cs
- StringCollection.cs
- DrawingImage.cs
- NavigationPropertyEmitter.cs
- SplitterEvent.cs
- ForeignConstraint.cs
- ExpressionPrefixAttribute.cs
- ResXBuildProvider.cs
- UiaCoreApi.cs
- ComponentConverter.cs
- XmlSchemaAttributeGroupRef.cs
- RoutedPropertyChangedEventArgs.cs
- Validator.cs
- Compensation.cs
- ResourcePermissionBase.cs
- MessageVersionConverter.cs
- MetadataImporter.cs
- WindowHelperService.cs
- ProcessInputEventArgs.cs
- SerializationAttributes.cs
- CurrencyWrapper.cs
- ArraySubsetEnumerator.cs
- QilFunction.cs
- DefinitionBase.cs
- EasingKeyFrames.cs
- FontFamily.cs
- PropertyFilterAttribute.cs
- ReflectionPermission.cs
- InputLanguageEventArgs.cs
- _CookieModule.cs
- ListSortDescriptionCollection.cs
- TableLayoutPanel.cs
- Int16AnimationUsingKeyFrames.cs
- FormViewModeEventArgs.cs
- ListCollectionView.cs
- DataGridCellsPanel.cs
- EllipseGeometry.cs
- XmlSchemaGroup.cs