Materialdesigninxamltoolkit: Text with first underscore doesn't get populated in ComboBox

Created on 24 Sep 2019  路  4Comments  路  Source: MaterialDesignInXAML/MaterialDesignInXamlToolkit

Text with first underscore doesn't get populated in ComboBox

Steps to reproduce: Populate a ComboBox with 8z_Without_CQG, 8z_Without_CQG, 7z_Without_CQG, 6z_Without_CQG, 5z_Without_CQG, 4z_Without_CQG, 3z_Without_CQG...

When we click on ComboBox, it will show as follows:
issue

Expected would be: 8z_Without_CQG
Currently its showing: 8zWithout_CQG

bug

Most helpful comment

This is most likely because how WPF is handling the first _ as a accesskey.

There's various ways to fix it. Here's some material:
https://stackoverflow.com/questions/9403782/first-underscore-in-a-datagridcolumnheader-gets-removed
https://stackoverflow.com/questions/9684619/label-doesnt-display-character

All 4 comments

This is most likely because how WPF is handling the first _ as a accesskey.

There's various ways to fix it. Here's some material:
https://stackoverflow.com/questions/9403782/first-underscore-in-a-datagridcolumnheader-gets-removed
https://stackoverflow.com/questions/9684619/label-doesnt-display-character

Thanks a lot for prompt reply and correct answer.

Its still present for Combobox

@Keboo Kindly fix this issue in next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soi013 picture soi013  路  3Comments

MoshiMoshi0 picture MoshiMoshi0  路  4Comments

BryceBarbara picture BryceBarbara  路  3Comments

TFTomSun picture TFTomSun  路  4Comments

nrmohan picture nrmohan  路  3Comments