示例#1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var fldchoose = new FieldChooser(new FieldChooserModelView(ModelView.ItemType));

            fldchoose.ShowDialog();
            ModelView.RefreshColumns(fldchoose.FieldChooserModelView.AllFields);
        }
示例#2
0
        protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
        {
            var fldchoose = new FieldChooser(new FieldChooserModelView(ModelView.ItemType));

            ModelView.RefreshColumns(fldchoose.FieldChooserModelView.AllFields);
            ItemSourceChanged?.Invoke(oldValue, newValue);
        }