public void Initialize(ViewModelSetterTestControl control) { model = new MyModel(); control.DataContext = model; ViewModelSetter.RegisterFactory("MySetter", ViewModelFactory); }
public MyViewModel(MyModel model) { count++; Model = model; Color = Colors.Green; }