Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ComboBox > Clear Selection button custom behavior

Not answered Clear Selection button custom behavior

Feed from this thread
  • Shawn avatar

    Posted on Dec 27, 2011 (permalink)

    I'm trying to make a multi-select combobox with checkboxes in each item. Is there an event/way to get access to the clear selection button? I didn't see an event and I wasn't having luck finding the button in the visual tree. I was hoping i could hook into previewleftmousebuttondown and do my clear action. 

    Reply

  • Yana Yana admin's avatar

    Posted on Dec 29, 2011 (permalink)

    Hello Shawn,

    I am afraid that the behavior of the ClearSelection button cannot be easily customized - it just sets SelectedIndex=-1.  You should modify the template of the ComboBox in order to subscribe to the previewleftmousebuttondown event of the button.

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ComboBox > Clear Selection button custom behavior
Related resources for "Clear Selection button custom behavior"

WPF ComboBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]