이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

ContextMenuService 클래스

Service class that provides the system implementation for displaying a ContextMenu.

네임스페이스: System.Windows.Controls
어셈블리: PresentationFramework(presentationframework.dll)
XML 네임스페이스:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public static class ContextMenuService
public final class ContextMenuService
public final class ContextMenuService
이 관리되는 클래스는 XAML에서 사용할 수 없습니다.

One use of the ContextMenuService is to display menus on disabled items.

The following example shows how to use the service to display a ContextMenu on a disabled button. Notice that you set the ShowOnDisabled property on the button which is the parent of the context menu.

<Button Height="30" Content="Disabled Button" IsEnabled="False" 
     ContextMenuService.ShowOnDisabled="True">
<Button.ContextMenu>
<ContextMenu>       
   <MenuItem Header="Item 1"/>
   <MenuItem Header="Item 2"/>     
   <MenuItem Header="Item 3"/>  
</ContextMenu>
</Button.ContextMenu>
</Button>

System.Object
  System.Windows.Controls.ContextMenuService
이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원
이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

추가
Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?
© 2013 Microsoft. All rights reserved.