Disable Expander if no Content to Expand

Thread is closed for posting
2 posts, 0 answers
  1. Dean
    Dean avatar
    4 posts
    Member since:
    Jan 2014

    Posted 21 Feb 2014 Link to this post


    I have an ExpanderControl in an ItemTemplate of a RadDataBoundListBox, all with data binding. I am using the default 'arrow' expander button.

    When expanding, I display some additional text content. It all works fine.

    However, in the case where this text content is empty, I would like to disable the expander button to disallow expansion since it is not relevant.

    Any suggestion how to do this?

  2. Deyan
    Deyan avatar
    2147 posts

    Posted 24 Feb 2014 Link to this post

    Hello Dean,

    You can try using the IsEnabled or IsHitTestVisible properties. They control whether the user input is process by a given element or not.

    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Back to Top