From 925c301cbe41eedda74f0e573a33da033f8e3996 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 21 Jan 2022 20:20:00 -0500 Subject: [PATCH] refactor: Change MultiSelectDropDowns to ComboCheckBox in vs settings --- .../AW2/View/VolSurfaceSettingsEditor.xaml | 30 +++++++++++++++---- .../Grid/VolSurfaceSimplifiedGridVM.cs | 8 ++--- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/client/spark/AW2/View/VolSurfaceSettingsEditor.xaml b/src/client/spark/AW2/View/VolSurfaceSettingsEditor.xaml index d4c224d09..bc47b5b93 100644 --- a/src/client/spark/AW2/View/VolSurfaceSettingsEditor.xaml +++ b/src/client/spark/AW2/View/VolSurfaceSettingsEditor.xaml @@ -1,4 +1,4 @@ - - + TextBlock.Foreground="Black"> + + + + + + + + + + - + TextBlock.Foreground="Black"> + + + + + + + + + + diff --git a/src/client/spark/AW2/ViewModel/Grid/VolSurfaceSimplifiedGridVM.cs b/src/client/spark/AW2/ViewModel/Grid/VolSurfaceSimplifiedGridVM.cs index 871527959..e12e28b0b 100644 --- a/src/client/spark/AW2/ViewModel/Grid/VolSurfaceSimplifiedGridVM.cs +++ b/src/client/spark/AW2/ViewModel/Grid/VolSurfaceSimplifiedGridVM.cs @@ -152,15 +152,13 @@ namespace mbts.spark.VolSurface { })); VolSurfaceSimplifiedColumn create_exp_column_view() { - var filter = new MultiSelectDropDown() { HeaderText = "Expirations" }; + var filter = new ComboCheckBox() { HeaderContent = "Expirations" }; filter.Foreground = Brushes.Black; - filter.SetBinding(MultiSelectDropDown.ItemsSourceProperty, new Binding() { - Path = new PropertyPath("rows"), + filter.SetBinding(ItemsControl.ItemsSourceProperty, new Binding(nameof(rows)) { Source = this, Mode = BindingMode.OneWay }); - filter.SetBinding(MultiSelectDropDown.SelectedItemsProperty, new Binding() { - Path = new PropertyPath("visible_rows"), + filter.SetBinding(ComboCheckBox.SelectedItemsProperty, new Binding(nameof(visible_rows)) { Source = this, Mode = BindingMode.OneWay });