Hello,
I am having trouble keeping the text value after the dropdown closes when nothing is selected.
I populate the text property with a value that is not in the ItemsSource. If a user clicks the dropdown to expand it and then closes the dropdown without selecting an item, the text is set to null.
I populate the EmptyText property with the value of text hoping that would keep it from becoming empty but that does not work. I also caught the dropdownclosed event thinking that if the SelectedItem was null I would repopulate the text. This did not matter because at that point the text is still populated.
Can you please throw me an idea?
Thanks,
Jason
I am having trouble keeping the text value after the dropdown closes when nothing is selected.
I populate the text property with a value that is not in the ItemsSource. If a user clicks the dropdown to expand it and then closes the dropdown without selecting an item, the text is set to null.
I populate the EmptyText property with the value of text hoping that would keep it from becoming empty but that does not work. I also caught the dropdownclosed event thinking that if the SelectedItem was null I would repopulate the text. This did not matter because at that point the text is still populated.
Can you please throw me an idea?
Thanks,
Jason