Any help would be appreciated.
show state lbox when txbox entered not show when leaving
I am trying to duplicate what I used to do with a Windows Forms based solution, set visible a state listbox when the state entry textbox is entered and set visibility false when state textbox is left. There doesn't seem to be a direct equivalent to this in WPF but there is probably a way to do it, I just can't figure out how.
Tom HallPosted Sep 25, 2013, 1:39 AM
Pavan RamamurthyPosted Sep 24, 2013, 3:12 AM
http://stackoverflow.com/questions/2674467/bind-selected-item-to-a-text-box
http://www.daniweb.com/software-development/csharp/threads/388322/wpf-binding-to-a-listbox.selecteditem.content-property-within-a-datatemplate
Pavan RamamurthyPosted Sep 24, 2013, 3:11 AM
http://stackoverflow.com/questions/2674467/bind-selected-item-to-a-text-box
http://www.daniweb.com/software-development/csharp/threads/388322/wpf-binding-to-a-listbox.selecteditem.content-property-within-a-datatemplate
Tom HallPosted Sep 21, 2013, 5:47 AM
On my Windows Form entry form I would use a text box for entry of the value for state - i.e. Texas, California, etc. Rather than have the user type the entry, I would provide a list box populated with all of the state names and allow them to either use their mouse to make a selection or to start typing and filter and update the list box to show only those items that contained the characters as they were entered. So the use would type t and the list box would show only Texas, and Tennessee. When their entry reached a point where there was only one selection remaining the value would be placed in the text box and the next entry item would receive focus.
To activate the state list box I would trap the enter event for the state text box to set the list box visible = true and trap the leave event for setting the list box to visible = false.
I am trying to duplicate this in WPF without success and am requesting assistance in how to best approach duplicating the above Windows Forms behavior in WPF.
Sanjeeb LenkaPosted Sep 21, 2013, 1:15 AM