private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { _model = DataContext as LicenceViewModel; if (_model != null) { _model.InitData(); } }
public ConfigurationModel() { OptionsModel = new MainViewModel(); OptionsModel.AppModel = this; RenderingModel = new RenderingSets(this); LicenceModel = new LicenceViewModel(); LicenceModel.AppModel = this; Instance = this; }