![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | How to modify ListBox selection behavior Anybody would know how I can modify the way ListBox changes it's selected Item... Currently, MouseDown on a listbox Item causes it to be selected, which means that Pressing mouse button and moving the mouse around causes selection to change as the mouse moves... I would like to change that behavior so that it's the MouseUp that affects the change... Any easy way to do that except recoding a Selector almost identical to ListBox? Thanks Marcus. |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: How to modify ListBox selection behavior I think you should inherits from ListBoxItem, let's call MyListBoxItem. Then override OnMouseLeftButtonDown to disable the MouseDown selection action. Then do some other work to select the item in MouseUp. As I know, there is no easy way to change this behavior. "Marcus" wrote: > Anybody would know how I can modify the way ListBox changes it's > selected Item... > > Currently, MouseDown on a listbox Item causes it to be selected, which > means that Pressing mouse button and moving the mouse around causes > selection to change as the mouse moves... > > I would like to change that behavior so that it's the MouseUp that > affects the change... > > Any easy way to do that except recoding a Selector almost identical to > ListBox? > > Thanks > > Marcus. > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ListBox Filtering | jp2msft | .NET General | 1 | 06-04-2008 06:47 PM |
| Easy to get handle from listbox. How to get listbox from handle? | IMAFriend | .NET General | 0 | 03-27-2008 08:31 PM |
| Listbox | Anatoli | PowerShell | 7 | 12-04-2007 04:24 AM |
| Smart-quote behavior: Is current behavior ideal? | Alex K. Angelopoulos [MVP] | PowerShell | 0 | 08-16-2006 01:39 PM |
| ListBox SelectionChangedEvent | PT | Avalon | 1 | 04-02-2006 07:38 PM |