From dad4c1bf9bb13e28c4216c58495c3bceb63a4588 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 6 Aug 2019 13:05:27 -0500 Subject: [PATCH] ExecutionStrategyEditor uses VisualStates to disable name, ticks, and pricing controls after creation --- .../Spreader/ExecutionStrategyEditor.xaml | 61 +++++++++++++++++-- .../Spreader/ExecutionStrategyEditor.xaml.cs | 2 +- 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml index d5b5f5503..9c4ef4b5b 100644 --- a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml +++ b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml @@ -383,11 +383,17 @@ + + PersistanceStates + UnpersistedState + PersistedState + + @@ -405,6 +411,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -422,7 +456,7 @@ - Name + Name - Pricing + diff --git a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs index a631b5e16..83d205f2d 100644 --- a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs +++ b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs @@ -275,7 +275,7 @@ namespace mbts.ui.spark { public ExecutionStrategyErrorAdorner(ExecutionStrategyEditor editor) : base(editor) { _name_text_box = child_property("PART_Name_TextBox"); - _tick_factors_picker = child_property("PART_TickFactorsPicker"); + _tick_factors_picker = child_property("PART_TickFactors_Picker"); } protected override void OnRender(DrawingContext drawing_context) {