0

我正在尝试为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>

对于MoreClose按钮,它们的Alt+Key 有效

4

1 回答 1

0

无法重现此。

您的上下文可能会使用该组合键,它会覆盖该按钮的访问键组合。

于 2011-05-30T13:43:13.587 回答