.net 3.5 - Overriding mouse over behaviour in WPF combo box -
After rotating a mouse over an item in the drop-down list, the item gets highlighted but shown in the text box The selected values do not change until the item is clicked. I'm looking for a way to modify the mouse to change behavior in the control that comes with a combo box. I received the OnMouseEnter
& amp; Tried to override like; OnMouseMove
etc.
You can do it by overriding the oorreading. The property of MouseEventArgs will give you the element under the mouse directly. You can use ComboBoxItem to obtain that element and then to select the item:
Secure Override Zero OnMouseMove (MouseEventArgs e) {base.OnMouseMove (e) ; Var container = containerframe element ((dependent object) e.OriginalSource); If (container! = Null) {Selected Event = Item Container Generator Container to container (container); }}
Comments
Post a Comment