locked
How to lock all the interaction on a component? RRS feed

  • Question

  • Hello,

    I use Expression Blend to present prototypes and concepts to the users.

    On some prototypes it is really nice to have an interaction with the application and on some others, the rough versions, it would be preferable to prevent all these interactions.

    How can I lock a whole component?

    I thought about creating an overlay panel on it but I don't know how to keep the event on that panel so that all the controls below don't receive the events.

    Any ideas?

    Thank you very much

    Thursday, January 30, 2014 10:10 AM

Answers

  • One simple way is to put a rectangle over the entire control, and this is key, make it have a transparent fill. It should block any mouse clicks. But, it will also block any hover states, etc...

    Does that work for what you need?

    • Marked as answer by Werwack Friday, January 31, 2014 10:16 AM
    Thursday, January 30, 2014 3:19 PM
    Moderator

All replies

  • One simple way is to put a rectangle over the entire control, and this is key, make it have a transparent fill. It should block any mouse clicks. But, it will also block any hover states, etc...

    Does that work for what you need?

    • Marked as answer by Werwack Friday, January 31, 2014 10:16 AM
    Thursday, January 30, 2014 3:19 PM
    Moderator
  • Wonderfull! Exactly that. It blocks everything and the result behave exactly as an image that I will be able to comment on an overlay panel.

    Simple to set and very efficient :D

    It is subtle because having a brush with an alpha set to 0 is different from having no brush at all.

    Thanks a lot!


    • Edited by Werwack Friday, January 31, 2014 10:20 AM
    Friday, January 31, 2014 10:19 AM