上文本禁用標籤導航我有以下兩個按鈕:WPF內部按鈕
Button1的 將Button2
將Button2
在的情況下, button1 the st內部的ackpannel得到關注。 在button2的情況下,ContentText在使用選項卡進行導航時會集中注意力。
我試圖禁用按鈕內的標籤導航,但沒有成功。 我已經有嘗試每個: KeyboardNavigation.IsTabStop = 「假」 FocusManager.IsFocusScope = 「假」 KeyboardNavigation.TabNavigation = 「無」
但他們都不幫我。
更新: 我已將代碼包含在第一篇文章中,但未出現。對不起,我很新來堆棧。
Button1的
<Button Command="{Binding Button1Command}">
<StackPanel>
<Image Source="button1.png"/>
<TextBlock>Button2</TextBlock>
</StackPanel>
</Button>
Button2的
<Button Command="{Binding Button2Command}" Content="{Binding Button2Text}"/>
請問您可以在問題中發佈您的代碼嗎?它會讓我們更容易給你一個有用的答案 – yochannah