我正在尝试为Alt我的 StackPanel 中的插入按钮创建一个密钥,但是它不起作用。
我有以下代码
<StackPanel Name="ButtonsStackPanel" Grid.Row="2">
<Button Name="btnAnother" Click="btnAnother_Click" Height="24" Width="251" Content="_More" ToolTip="Alt + M"></Button>
<Button Name="btnInsert" Click="btnInsert_Click" Height="24" Width="251" Content="_Insert" ToolTip="Alt + I"></Button>
<Button Height="23" Name="btnClose" Width="249" Click="btnClose_Click" ToolTip="Alt + C" Content="_Close"></Button>
</StackPanel>
对于More
和Close
按钮,它们的Alt+Key 有效