internal DataModelListPropertyViewModel(Type listType, DataModelDisplayViewModel displayViewModel) : base(null, null, null) { _listPredicateWrapper = ListPredicateWrapperDataModel.Create(listType); DataModel = _listPredicateWrapper; ListType = listType; DisplayViewModel = displayViewModel; }
public DataModelListPropertiesViewModel(Type listType) : base(null, null, null) { DataModel = ListPredicateWrapperDataModel.Create(listType); ListType = listType; IsRootViewModel = false; }
private DataModelPropertiesViewModel GetListDataModel() { ListPredicateWrapperDataModel wrapper = ListPredicateWrapperDataModel.Create( DataModelConditionListPredicate.DataModelConditionList.ListType ); return(wrapper.CreateViewModel(_dataModelUIService, new DataModelUpdateConfiguration(true))); }
/// <summary> /// Creates a view model for a <see cref="ListPredicateWrapperDataModel" /> /// </summary> /// <param name="wrapper">The wrapper to create the view model for</param> /// <param name="dataModelUIService">The data model UI service to be used by the view model</param> /// <param name="configuration">The update configuration to be used by the view model</param> /// <returns>The created view model</returns> public static DataModelPropertiesViewModel CreateViewModel(this ListPredicateWrapperDataModel wrapper, IDataModelUIService dataModelUIService, DataModelUpdateConfiguration configuration) { DataModelPropertiesViewModel viewModel = new(wrapper, null, new DataModelPath(wrapper)); viewModel.Update(dataModelUIService, configuration); viewModel.UpdateRequested += (sender, args) => viewModel.Update(dataModelUIService, configuration); viewModel.Children.First().IsVisualizationExpanded = true; return(viewModel); }
internal DataModelListPropertiesViewModel(Type listType) : base(null, null, null) { _listPredicateWrapper = ListPredicateWrapperDataModel.Create(listType); DataModel = _listPredicateWrapper; ListType = listType; }
public DataModelListPropertyViewModel(Type listType, DataModelDisplayViewModel displayViewModel) : base(null, null, null) { DataModel = ListPredicateWrapperDataModel.Create(listType); ListType = listType; DisplayViewModel = displayViewModel; }