Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WsatAdminException.cs
- WindowsScrollBar.cs
- HostedAspNetEnvironment.cs
- Vertex.cs
- RightNameExpirationInfoPair.cs
- StructuredTypeEmitter.cs
- DescriptionAttribute.cs
- ActivityPreviewDesigner.cs
- BitVector32.cs
- DataKeyCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- DataRowCollection.cs
- LoginAutoFormat.cs
- SafeArchiveContext.cs
- ExecutionContext.cs
- TripleDESCryptoServiceProvider.cs
- DataView.cs
- XmlCharCheckingWriter.cs
- PersistencePipeline.cs
- ProxySimple.cs
- DataGridCellClipboardEventArgs.cs
- CopyOnWriteList.cs
- ApplicationContext.cs
- CurrentTimeZone.cs
- WebPartUtil.cs
- WebZone.cs
- TokenCreationException.cs
- MarkupProperty.cs
- _SslSessionsCache.cs
- Visual3D.cs
- GeneralTransformGroup.cs
- Query.cs
- ByteAnimation.cs
- RangeValidator.cs
- CodeTypeReference.cs
- LocalizableResourceBuilder.cs
- ApplicationGesture.cs
- SqlBinder.cs
- RemoveStoryboard.cs
- DatePickerTextBox.cs
- FixedHighlight.cs
- Char.cs
- ControlCollection.cs
- TemplateKey.cs
- ChannelCredentials.cs
- PointLightBase.cs
- TextElementAutomationPeer.cs
- HttpCapabilitiesBase.cs
- ReflectPropertyDescriptor.cs
- XPathMultyIterator.cs
- FieldAccessException.cs
- CngAlgorithm.cs
- QilTernary.cs
- ControlAdapter.cs
- BindingManagerDataErrorEventArgs.cs
- SecurityTokenParameters.cs
- QueryStringParameter.cs
- Size3D.cs
- httpstaticobjectscollection.cs
- Mutex.cs
- Propagator.Evaluator.cs
- AxisAngleRotation3D.cs
- SrgsGrammarCompiler.cs
- DbConnectionPoolIdentity.cs
- AdditionalEntityFunctions.cs
- ResourceDescriptionAttribute.cs
- PersonalizationStateQuery.cs
- InputLangChangeRequestEvent.cs
- NeutralResourcesLanguageAttribute.cs
- SecurityTimestamp.cs
- _HeaderInfoTable.cs
- UInt32.cs
- Double.cs
- XmlBuffer.cs
- DataMemberAttribute.cs
- DispatcherSynchronizationContext.cs
- HtmlSelect.cs
- DesignerMetadata.cs
- MonitorWrapper.cs
- RelationshipType.cs
- ArraySet.cs
- ResourceDictionaryCollection.cs
- WebPartEditorApplyVerb.cs
- EnumerationRangeValidationUtil.cs
- XmlSchemaGroup.cs
- Point3D.cs
- WindowsSysHeader.cs
- OleDbConnectionInternal.cs
- TreeWalkHelper.cs
- DataContractSet.cs
- OperationInfo.cs
- CLSCompliantAttribute.cs
- WebPageTraceListener.cs
- WeakReferenceList.cs
- MSAANativeProvider.cs
- PrimitiveRenderer.cs
- SQLMoney.cs
- TextEditorDragDrop.cs
- ProjectedWrapper.cs
- EntityKey.cs