Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1655
Button inside XamTabControl
posted

Hi,

I have placed a button inside XamTabControl.(See the screen shot below).

The xaml code for button is:

<Button Name="btnSearchLookUptype" Click="btnSearchLookUptype_Click">S_earch</Button>

I want the hot key for the button as "atl+e". Hence i place "_" before "e" in button text "Search". But as u can see in the screen shot, the text for button is being displayed as "S_earch" rather than "Search".

If the same is placed without the tab control then its working correctly.

So can you please tell me what the problem is and how it can be resolved?

 

Thanks & Regards,

Varun R

Parents
No Data
Reply
  • 54937
    Offline posted

    I tried this out and wasn't able to reproduce the issue. Is it possible that you have defined a DataTemplate for string that uses a TextBlock somewhere in the ancestor chain of that button? If not, can you provide a sample that demonstrates the issue?

Children