Visibility Convention for Buttons

Topics: Conventions
May 15, 2011 at 3:28 AM

Evening everyone!

I am trying to get a grasp on the conventions piece. I currently see that there is already a convention for the panel object of binding to it's visibility property with a boolean value.

What I am trying to figure out is how I would go about creating a series of conventions to use for something like the RadButton control where I could have three things bound to the

button for me such as if I had a ShowLogin button ... I would like to have the following in my model be bound automatically for me....

public void ShowLogin()  => button click  event

public bool CanShowLogin() => enabled property

public bool ShowLoginVisible => visibility property

If someone could point me in the right direction that would be great!

Cheers!
SW

Sep 2, 2011 at 2:22 PM

looking for that also, no tutorials or samples ...

Sep 3, 2011 at 6:40 AM

http://blog.caraulean.com/2011/06/05/integration-of-caliburn-micro-and-teleriks-silverlight-controls/

might have some information you looking for... It doesn't specifically have a convention for buttons, but I am sure based on the examples you can come up with something fairly easy.