From f1ecfb9eac4fc576637a4dc9e569ce91fccf5044 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 19 Sep 2017 12:57:34 -0400 Subject: [PATCH] SyntheticEditor2 - SyntheticName BindsTwoWayByDefault --- .../Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs b/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs index 0fcad7baa..28e595831 100644 --- a/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs +++ b/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs @@ -28,8 +28,12 @@ namespace mbts.ui.spark object create_cell(LegSpreaderParamsTuple leg_tup); } - public static readonly DependencyProperty SyntheticNameProperty = DependencyProperty.Register("SyntheticName", typeof(string), typeof(SyntheticEditor2), new PropertyMetadata(string.Empty)); + #region SyntheticName + public static readonly DependencyProperty SyntheticNameProperty = DependencyProperty.Register("SyntheticName", typeof(string), typeof(SyntheticEditor2), + new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault)); + public string SyntheticName { get => GetValue(SyntheticNameProperty) as string; set => SetValue(SyntheticNameProperty, value); } + #endregion #region LegTuples public static readonly DependencyProperty LegTuplesProperty = DependencyProperty.Register("LegTuples", typeof(IReadOnlyCollection), typeof(SyntheticEditor2),