wpf - list box selected index won't update -
i have strange problem came out of no where... when attempt update list box selected index in code update if following lstbox.selectedindex = 4 or other number in range.
if lstbox.selectedindex++ or lstbox.selectedindex += 1 or lstbox.selectedindex = var; not update index selected index not update.
i using c# , wpf
any great!
interesting. tested , appear selectedindex property updates, controls appearance not update until has gained focus first time (calling invalidatevisual() , updatelayout() not update control ui, calling focus() or selecting item before setting selectedindex will).
edit: ignore that, updating selected item contrast between window background , unfocused highlight slight on screen didn't notice it, fool feel :p
Comments
Post a Comment