views:

17

answers:

1

In WPF, how do I get the control (FrameworkElement) that is bound to a property in a viewmodel's end? I want to create a drop shodow effect on the control.

+1  A: 

Getting a control instance in the ViewModel class is not really a good practice(as per MVVM). You can always have DataTrigger or converter in the XAML side to do that.

Jobi Joy