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
- _SecureChannel.cs
- WebMessageFormatHelper.cs
- EventMappingSettings.cs
- DictionaryContent.cs
- ComPlusTypeValidator.cs
- ContractsBCL.cs
- OneOfTypeConst.cs
- ObjectResult.cs
- MailAddressCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ClickablePoint.cs
- documentsequencetextcontainer.cs
- CompensatableTransactionScopeActivity.cs
- IChannel.cs
- FontNamesConverter.cs
- TypeSystem.cs
- RandomNumberGenerator.cs
- ViewStateModeByIdAttribute.cs
- MatrixAnimationUsingPath.cs
- InputScopeNameConverter.cs
- AppendHelper.cs
- TemplatedWizardStep.cs
- MimeObjectFactory.cs
- PageClientProxyGenerator.cs
- ExpressionBuilderContext.cs
- ResourceManagerWrapper.cs
- ExpressionBuilder.cs
- DataGridViewColumnEventArgs.cs
- SqlGatherConsumedAliases.cs
- QilInvoke.cs
- RelationshipWrapper.cs
- RegexGroupCollection.cs
- TableCell.cs
- StreamGeometryContext.cs
- RemoteWebConfigurationHostServer.cs
- Block.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SatelliteContractVersionAttribute.cs
- ParallelTimeline.cs
- WmlObjectListAdapter.cs
- EntityClassGenerator.cs
- CellRelation.cs
- UrlUtility.cs
- TypeConverterAttribute.cs
- DataGridViewCell.cs
- ExpandCollapseProviderWrapper.cs
- Query.cs
- TextPenaltyModule.cs
- DictionaryBase.cs
- CheckedListBox.cs
- _FixedSizeReader.cs
- CustomTypeDescriptor.cs
- QilFunction.cs
- ToolStripPanelCell.cs
- RequestStatusBarUpdateEventArgs.cs
- EventNotify.cs
- WebPartConnectionsConnectVerb.cs
- ClientSettingsSection.cs
- XmlSchemaComplexContentRestriction.cs
- HighlightVisual.cs
- QilLoop.cs
- InfiniteIntConverter.cs
- DataListItem.cs
- WindowsListBox.cs
- BamlStream.cs
- XAMLParseException.cs
- ModelItem.cs
- CryptoConfig.cs
- DynamicQueryStringParameter.cs
- TextTreeUndo.cs
- ValidationEventArgs.cs
- HttpVersion.cs
- ScrollBar.cs
- ControlIdConverter.cs
- ContainerControl.cs
- DocumentPageHost.cs
- SessionPageStatePersister.cs
- LogConverter.cs
- PipeSecurity.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FrameworkElementAutomationPeer.cs
- DataRowCollection.cs
- NGCUIElementCollectionSerializerAsync.cs
- SubMenuStyle.cs
- CacheEntry.cs
- AssemblyName.cs
- CopyOfAction.cs
- IndexerNameAttribute.cs
- OpenFileDialog.cs
- MULTI_QI.cs
- StylusDevice.cs
- VectorCollectionConverter.cs
- PageParserFilter.cs
- RectIndependentAnimationStorage.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ImmutableCommunicationTimeouts.cs
- DataTableExtensions.cs
- PngBitmapEncoder.cs
- SQLDateTime.cs
- XPathNavigatorKeyComparer.cs