From 4f0e4d84676b0a8e10805e9614761fba5108f8f7 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 18 Jul 2021 21:14:11 +0300 Subject: Editable Combobox item in ColorParametersView. --- .../Views/ColorParametersView.xaml | 2 +- .../Views/ComboboxEditable.xaml | 17 +-- .../Views/ComboboxEditable.xaml.cs | 23 ++-- .../Views/MachineTestResultsView.xaml | 25 +--- .../Views/ThreadCharacteristicsView.xaml | 132 ++++----------------- 5 files changed, 43 insertions(+), 156 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml index 739a2ae2c..697289604 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml @@ -300,7 +300,7 @@ - - + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ComboboxEditable.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ComboboxEditable.xaml.cs index e5b542f45..251241159 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ComboboxEditable.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ComboboxEditable.xaml.cs @@ -53,7 +53,17 @@ namespace Tango.MachineStudio.ThreadExtensions.Views + public string DisplayMemberPath + { + get { return (string)GetValue(DisplayMemberPathProperty); } + set { SetValue(DisplayMemberPathProperty, value); } + } + + public static readonly DependencyProperty DisplayMemberPathProperty = + DependencyProperty.Register("DisplayMemberPath", typeof(string), typeof(ComboboxEditable), new PropertyMetadata("")); + + public RelayCommand AddCommand { get { return (RelayCommand)GetValue(AddCommandProperty); } @@ -73,17 +83,6 @@ namespace Tango.MachineStudio.ThreadExtensions.Views // Using a DependencyProperty as the backing store for DeleteCommand. This enables animation, styling, binding, etc... public static readonly DependencyProperty EditCommandProperty = DependencyProperty.Register("EditCommand", typeof(RelayCommand), typeof(ComboboxEditable)); - - public RelayCommand DeleteCommand - { - get { return (RelayCommand)GetValue(DeleteCommandProperty); } - set { SetValue(DeleteCommandProperty, value); } - } - - // Using a DependencyProperty as the backing store for DeleteCommand. This enables animation, styling, binding, etc... - public static readonly DependencyProperty DeleteCommandProperty = - DependencyProperty.Register("DeleteCommand", typeof(RelayCommand), typeof(ComboboxEditable)); - - + } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MachineTestResultsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MachineTestResultsView.xaml index a8aa173df..27bffbebb 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MachineTestResultsView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MachineTestResultsView.xaml @@ -29,30 +29,11 @@ - - - - - + - - - - - - - - - - - + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml index 0f1003a63..caab8edfb 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml @@ -56,100 +56,22 @@ - + - + - - - + - - - + - - - + @@ -170,40 +92,32 @@ - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - + + -- cgit v1.3.1