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
90
Underscores (_) in headers of the content panes
posted

It seems that are not supported? or is it a xaml thing I am not aware of (Quite possible)

<igDock:ContentPane Header="abcde_f"></igDock:ContentPane

displays:

abcdef (no underscores)

thanks

  • 54937
    Offline posted

    In WPF, underscore usually denotes a mnemonic. You can either escape the underscore (by preceding it with an underscore (e.g. "abcde__f"), or you can retemplate the PaneHeaderPresenter such that the ContentPresenter it contains has its RecognizesAccessKey set to false or you can provide your own DataTemplate for the HeaderTemplate (e.g. a TextBlock that binds its Text property).