Share via


ThumbButtonInfo.Command 속성

정의

이 축소판 그림 단추를 클릭할 때 호출할 명령을 가져오거나 설정합니다.

public:
 property System::Windows::Input::ICommand ^ Command { System::Windows::Input::ICommand ^ get(); void set(System::Windows::Input::ICommand ^ value); };
public System.Windows.Input.ICommand Command { get; set; }
member this.Command : System.Windows.Input.ICommand with get, set
Public Property Command As ICommand

속성 값

이 축소판 그림 단추를 클릭할 때 호출할 명령입니다. 기본값은 null입니다.

예제

다음 예제에서는 만드는 방법을 보여 줍니다는 ThumbButtonInfo 태그에서입니다. 합니다 ThumbButtonInfo 바인딩되는 MediaCommands.Stop 명령입니다. 이 예제는에 대해 제공 된 큰 예제의 일부는 TaskbarItemInfo 클래스입니다.

<ThumbButtonInfo
    DismissWhenClicked="True"
    Command="MediaCommands.Stop"
    CommandTarget="{Binding ElementName=btnStop}"
    Description="Stop"
    ImageSource="{StaticResource ResourceKey=StopImage}"/>

설명

처리 하는 경우는 Click 이벤트를 이벤트 처리기가 아닌 실행 Command 축소판 그림 단추에 바인딩된 합니다.

XAML을에서이 종종 속성에서 같이 기존 명령 라이브러리 중 하나에서 정적 명령 값 이어야 합니다 ApplicationCommands 또는 NavigationCommands 라이브러리입니다.

적용 대상

추가 정보