I have a RadSplitButton whose dropdown content is a RadListBox of 3 strings. They are
- Item1
- Item_2
- Item_3
The user clicks the dropdown, chooses a new string and it becomes the current item.
It works fine until the user clicks an item with the underscore character. When that happens, the application hangs and the call-stack show it inside of an event handler: RadSplitButton.CloseAllPopupsToParent.
I noticed also that the name of the item in the button does not show the underscore character. I figured that this was because I was using a Label control instead of a TextBlock so I changed the ContentTemplate to instead use a TextBlock. Not only did this make the underscore show, but it also removed the hang.
I understand why the underscore would not show with Label but it should not hang an application.
I've attached a small sample project to illustrate the problem. Start the app, bring up the dropdown and choose the second or third items in the list. The app will hang.
Change the ContentTemplate's primitive to a TextBlock and it will not hang in this case.