Expander Mouse Clicks

3 posts, 0 answers
  1. Darin
    Darin avatar
    3 posts
    Member since:
    Feb 2012

    Posted 30 Nov 2012 Link to this post

    I have an Expander that I set IsEnabled="False", but I want to know if user clicks on it so that I can display a message.

    Please point me to an example on how to capture that mouse click (MouseDown for example)?

    Thanks
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 04 Dec 2012 Link to this post

    Hello Darin,

    This scenario you are trying to achieve is handled correctly by the framework, you can not listen for mouse events on a disabled control. However you can wrap the RadExpander in content control such as: StackPanel, Grid e.t. and listen for their MouseEvents.

    I have made a sample solution for your convenience.

    I hope this information helps, please don't hesitate to ask if you have further questions.

    Regards,
    Kiril Vandov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Darin
    Darin avatar
    3 posts
    Member since:
    Feb 2012

    Posted 04 Dec 2012 Link to this post

    Awesome, that is simple.  Thanks
Back to Top