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
- _ProxyChain.cs
- CultureInfo.cs
- UInt64.cs
- MenuStrip.cs
- SelectionEditingBehavior.cs
- HtmlMeta.cs
- TextReader.cs
- Models.cs
- BuiltInPermissionSets.cs
- SettingsBase.cs
- NonNullItemCollection.cs
- QilGenerator.cs
- ProxyWebPartManager.cs
- NonNullItemCollection.cs
- ParameterElementCollection.cs
- webeventbuffer.cs
- ExpressionBindingCollection.cs
- WpfMemberInvoker.cs
- RenderData.cs
- ConsoleCancelEventArgs.cs
- LayoutInformation.cs
- AuthorizationRuleCollection.cs
- CustomPopupPlacement.cs
- OdbcEnvironmentHandle.cs
- XmlValidatingReader.cs
- TypeUtils.cs
- RadioButtonList.cs
- DataTemplateSelector.cs
- RegexCaptureCollection.cs
- UnmanagedMemoryStream.cs
- ListQueryResults.cs
- TextEndOfLine.cs
- DisplayInformation.cs
- ConditionalBranch.cs
- InternalRelationshipCollection.cs
- DataControlFieldCollection.cs
- ArrayTypeMismatchException.cs
- DataGridViewButtonCell.cs
- MapPathBasedVirtualPathProvider.cs
- AssemblyBuilder.cs
- HealthMonitoringSectionHelper.cs
- BinaryObjectReader.cs
- SHA1Managed.cs
- PriorityRange.cs
- Util.cs
- ListViewCancelEventArgs.cs
- HttpDictionary.cs
- CompositeFontParser.cs
- LoginView.cs
- TemplatePropertyEntry.cs
- HttpBufferlessInputStream.cs
- BuilderPropertyEntry.cs
- SoapCodeExporter.cs
- Profiler.cs
- ProjectionCamera.cs
- WebPartsPersonalization.cs
- DirectoryRedirect.cs
- Point4DValueSerializer.cs
- ParseNumbers.cs
- OdbcParameterCollection.cs
- FormViewUpdatedEventArgs.cs
- OdbcUtils.cs
- BaseResourcesBuildProvider.cs
- Section.cs
- ArcSegment.cs
- QilStrConcatenator.cs
- ExpressionEditorAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- MD5.cs
- WebResponse.cs
- ComboBoxRenderer.cs
- UniqueCodeIdentifierScope.cs
- EventArgs.cs
- AssociationSet.cs
- HttpRequestTraceRecord.cs
- TreeView.cs
- EditorOptionAttribute.cs
- MulticastIPAddressInformationCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ProgressBarAutomationPeer.cs
- OleDbParameter.cs
- PublisherMembershipCondition.cs
- TextTreeInsertUndoUnit.cs
- RequestQueue.cs
- Deflater.cs
- TablePattern.cs
- Int32RectValueSerializer.cs
- DefaultValueConverter.cs
- XmlSchemas.cs
- UrlAuthorizationModule.cs
- SourceFilter.cs
- CompilationUnit.cs
- Emitter.cs
- Clock.cs
- Region.cs
- SQLMembershipProvider.cs
- XPathCompileException.cs
- TextModifier.cs
- UIElement3D.cs
- MailMessage.cs