1
啓用助記符我讀到爲了使記憶法,我必須打開RecognizesAccessKey上ContentPresenter。
當我試圖此代碼,我看到的只是沒有按鈕上的文字。按鈕
<Button x:Name="OkButton" Content="_OK" Command="{Binding ExecuteCommand}">
<Button.Template>
<ControlTemplate TargetType="Button">
<ContentPresenter RecognizesAccessKey="True" />
</ControlTemplate>
</Button.Template>
</Button>
也許有一種方法可以在不刪除按鈕的默認模板的情況下進行更改嗎?