Suppose I have a ViewModel TabViewModelthat extends a ObservableObjectclass for ViewModels in the MVVM Foundation Framework. Then I also have EditorTabViewModelthat extends TabViewModel. Now I need to expand DependencyObjectto implement DependencyProperties. I can not extend more than 1 class. How can i implement this? I could have a "intermediate" class, for example ...
TabViewModel : ObservableObject
EditorTabViewModel : TabViewModel
DependentEditorTabViewModel : DependencyObject
but this is an extra class. Any better way to do this?
UPDATE
In fact, I can not do the above. DependentEditorTabViewModelstill need to extend EditorTabViewModel ... exceptDependencyObject
source
share