diff --git a/src/SampleApp.WinDesktop/GsaControl.xaml b/src/SampleApp.WinDesktop/GsaControl.xaml index 0096744..e955509 100644 --- a/src/SampleApp.WinDesktop/GsaControl.xaml +++ b/src/SampleApp.WinDesktop/GsaControl.xaml @@ -12,7 +12,7 @@ - + diff --git a/src/SampleApp.WinDesktop/GsaControl.xaml.cs b/src/SampleApp.WinDesktop/GsaControl.xaml.cs index 5acab7e..0c4bd8b 100644 --- a/src/SampleApp.WinDesktop/GsaControl.xaml.cs +++ b/src/SampleApp.WinDesktop/GsaControl.xaml.cs @@ -33,6 +33,11 @@ namespace SampleApp.WinDesktop } public static readonly DependencyProperty MessageProperty = - DependencyProperty.Register(nameof(Message), typeof(Gsa), typeof(GsaControl), new PropertyMetadata(null)); - } + DependencyProperty.Register(nameof(Message), typeof(Gsa), typeof(GsaControl), new PropertyMetadata(null, (d, e) => ((GsaControl)d).OnGsaPropertyChanged(e))); + + private void OnGsaPropertyChanged(DependencyPropertyChangedEventArgs e) + { + vehicles.Value = string.Join(",", Message?.SatelliteIDs); + } + } }