Aaaaaaaa
Aaaaaaaa

Reputation: 2114

RelayCommand property in a control (SL, MVVM)

is it possible to create a Silverlight control, which one has a bindable RelayCommand<MyType> property?

If yes, please show me an example!

Upvotes: 0

Views: 346

Answers (1)

AxelEckenberger
AxelEckenberger

Reputation: 16926

Yes it is, use a DependencyProperty of type RelayCommand.

See http://msdn.microsoft.com/en-us/library/ms752914.aspx fore more info on dependency properties.

Upvotes: 1

Related Questions