WPF Button Styleを使用してClickイベント ハンドラーを割り当てる

ボタンのスタイルでEventを設定する

<Style x:Key="ButtonStyle1" TargetType="Button">
    <EventSetter Event="Click" Handler="Button_Click"/>
</Style>
 

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.