A different kind of Action Guard

Topics: Actions & Coroutines
Sep 5, 2013 at 3:51 PM
I'm wondering if anyone has tried creating an extension to CM where a guard for actions can be specified that would toggle the target element Visibility property rather than IsEnabled property?

So we have this:

public void SayHello(...)

public bool CanSayHello { ... }

But what about a convention for Visibility:

public bool IsSayHelloVisible { ... }


The mechanism would do the boolean to Visibility conversion for the developer, etc.

Any ideas how this might be approached?