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
- XmlSecureResolver.cs
- ForceCopyBuildProvider.cs
- StylusShape.cs
- ResourceReader.cs
- HitTestDrawingContextWalker.cs
- IndependentAnimationStorage.cs
- ChannelFactoryRefCache.cs
- ResourceManager.cs
- PointValueSerializer.cs
- SimplePropertyEntry.cs
- StreamWriter.cs
- EmbeddedMailObject.cs
- ExpressionConverter.cs
- ObjectToken.cs
- OracleConnectionFactory.cs
- GenerateHelper.cs
- EntityDataSourceReferenceGroup.cs
- PropertyChangeTracker.cs
- XmlSchemaImport.cs
- ThreadSafeMessageFilterTable.cs
- ParseElement.cs
- SimpleRecyclingCache.cs
- PropertyConverter.cs
- TcpActivation.cs
- HtmlInputFile.cs
- DataGridViewEditingControlShowingEventArgs.cs
- EntityDataSourceSelectingEventArgs.cs
- DoubleUtil.cs
- ObjectQueryState.cs
- SchemaCollectionCompiler.cs
- CombinedGeometry.cs
- TakeQueryOptionExpression.cs
- ScriptRef.cs
- StylusButton.cs
- ManagedIStream.cs
- Script.cs
- AssemblyNameEqualityComparer.cs
- PrintSystemException.cs
- EntityFunctions.cs
- XmlSchemaInfo.cs
- XmlSchemaAny.cs
- UInt16Converter.cs
- EntityDataSourceSelectedEventArgs.cs
- VariableQuery.cs
- WorkflowShape.cs
- DataMember.cs
- CalendarKeyboardHelper.cs
- ChineseLunisolarCalendar.cs
- InputChannelAcceptor.cs
- StringInfo.cs
- PasswordBox.cs
- ToolBarPanel.cs
- InheritedPropertyDescriptor.cs
- wmiprovider.cs
- ObjectDisposedException.cs
- ChooseAction.cs
- StringPropertyBuilder.cs
- DescendantOverDescendantQuery.cs
- XmlSchemaElement.cs
- InheritedPropertyDescriptor.cs
- DrawingBrush.cs
- UnionCqlBlock.cs
- LayoutTableCell.cs
- ValidationSummary.cs
- SqlConnectionPoolProviderInfo.cs
- GlyphsSerializer.cs
- DbDataRecord.cs
- XmlEntityReference.cs
- XmlSerializerFactory.cs
- Normalization.cs
- AutomationPattern.cs
- DriveNotFoundException.cs
- GridViewItemAutomationPeer.cs
- OdbcErrorCollection.cs
- DbConnectionClosed.cs
- ArrayExtension.cs
- AnnotationComponentChooser.cs
- _AutoWebProxyScriptHelper.cs
- ProfileInfo.cs
- LoadItemsEventArgs.cs
- Random.cs
- FrameAutomationPeer.cs
- TraceHwndHost.cs
- FacetDescriptionElement.cs
- __ConsoleStream.cs
- ObjectDesignerDataSourceView.cs
- Emitter.cs
- BindingElement.cs
- PerformanceCounterPermissionEntry.cs
- ExpandCollapsePattern.cs
- BezierSegment.cs
- ClientRolePrincipal.cs
- XmlSignatureProperties.cs
- PageAdapter.cs
- SetterBase.cs
- TraceProvider.cs
- TemplateControlBuildProvider.cs
- FocusWithinProperty.cs
- PowerEase.cs
- Privilege.cs