It is expected that you will receive RadRoutedEventArgs
as command parameter when using the Event-To-Command pattern, because the arguments of the subscribed event are sent as command parameters.
Since this approach is not suitable in your scenario, you can subscribe to the LoadOnDemand
event of the RadTreeView
control and invoke a method defined in your ViewModel
form the code behind file of your user control. By doing so you will be able to pass the needed business item into your ViewModel
and implement your custom logic there.
I hope that this clarifies your question.
Pavel R. Pavlov
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>