Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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)
{
if (ps != null)
{
return new SecureUICommand(ps, name, ownerType, commandId);
}
else
{
return new RoutedUICommand(name, ownerType, commandId);
}
}
}
}
// 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
- wgx_render.cs
- Vector3dCollection.cs
- StateMachineExecutionState.cs
- EncoderReplacementFallback.cs
- ServiceModelReg.cs
- _NegotiateClient.cs
- FirstMatchCodeGroup.cs
- StatusStrip.cs
- SelfIssuedSamlTokenFactory.cs
- MemoryMappedViewAccessor.cs
- RenderDataDrawingContext.cs
- RequiredFieldValidator.cs
- UnconditionalPolicy.cs
- InputScopeConverter.cs
- XmlILCommand.cs
- DomainConstraint.cs
- Pair.cs
- BookmarkOptionsHelper.cs
- DataStreamFromComStream.cs
- ResXBuildProvider.cs
- DropSource.cs
- GlyphRunDrawing.cs
- base64Transforms.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- KeyValuePairs.cs
- SeverityFilter.cs
- WebEvents.cs
- SizeAnimationUsingKeyFrames.cs
- WCFModelStrings.Designer.cs
- WebDescriptionAttribute.cs
- TextBoxBase.cs
- ToolStripLocationCancelEventArgs.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- ComponentResourceManager.cs
- PersonalizationProvider.cs
- MessageQueuePermissionEntry.cs
- FilteredAttributeCollection.cs
- Variable.cs
- RoleGroupCollection.cs
- RegisteredScript.cs
- WebPartEventArgs.cs
- OdbcConnection.cs
- NotSupportedException.cs
- ConfigurationLockCollection.cs
- WorkflowPersistenceService.cs
- Floater.cs
- PathData.cs
- OutgoingWebResponseContext.cs
- Update.cs
- DbParameterCollection.cs
- EntityConnection.cs
- SoapAttributeAttribute.cs
- SystemMulticastIPAddressInformation.cs
- BuildDependencySet.cs
- CodeAttachEventStatement.cs
- SoapFormatter.cs
- Pts.cs
- GroupStyle.cs
- AtomEntry.cs
- OleDbWrapper.cs
- AutoCompleteStringCollection.cs
- CompositeScriptReferenceEventArgs.cs
- parserscommon.cs
- DocumentGrid.cs
- XmlSchemaSubstitutionGroup.cs
- SecurityTokenResolver.cs
- TraceSection.cs
- RectangleHotSpot.cs
- DataRecordObjectView.cs
- PolicyVersion.cs
- EnumMemberAttribute.cs
- ListViewDataItem.cs
- FlowDocumentReaderAutomationPeer.cs
- PropertyInformationCollection.cs
- PageCodeDomTreeGenerator.cs
- BlurBitmapEffect.cs
- HttpPostLocalhostServerProtocol.cs
- StyleSheet.cs
- PropertySourceInfo.cs
- SmtpDateTime.cs
- InfoCardPolicy.cs
- StdValidatorsAndConverters.cs
- CodeDomExtensionMethods.cs
- KnowledgeBase.cs
- BoundField.cs
- BufferedWebEventProvider.cs
- AddressHeader.cs
- ExceptionHelpers.cs
- TableLayoutColumnStyleCollection.cs
- ServicesExceptionNotHandledEventArgs.cs
- SemanticResultKey.cs
- ModelTreeEnumerator.cs
- Converter.cs
- ObjectHelper.cs
- AccessControlEntry.cs
- GuidConverter.cs
- XmlSchemaSimpleTypeUnion.cs
- _LocalDataStore.cs
- TemplateBuilder.cs
- TextEditorSelection.cs