From 0ce8e488f920ab92a0ef57c65c5049793861e1b9 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 3 May 2024 10:31:12 +0200 Subject: [PATCH] ChartWindow: Replace deprecated property names --- Elwig/Windows/ChartWindow.xaml.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Elwig/Windows/ChartWindow.xaml.cs b/Elwig/Windows/ChartWindow.xaml.cs index 1332e01..d1f4d4e 100644 --- a/Elwig/Windows/ChartWindow.xaml.cs +++ b/Elwig/Windows/ChartWindow.xaml.cs @@ -38,21 +38,21 @@ namespace Elwig.Windows { private static readonly LegendItem UngebundenLegend = new() { - Label = "Ungebunden", LineWidth = 1, LineColor = ColorUngebunden, - Marker = new(MarkerShape.FilledCircle, 5, ColorUngebunden) + LabelText = "Ungebunden", LineWidth = 1, LineColor = ColorUngebunden, + MarkerStyle = new(MarkerShape.FilledCircle, 5, ColorUngebunden) }, GebundenLegend = new() { - Label = "Gebunden", LineWidth = 1, LineColor = ColorGebunden, - Marker = new(MarkerShape.FilledCircle, 5, ColorGebunden) + LabelText = "Gebunden", LineWidth = 1, LineColor = ColorGebunden, + MarkerStyle = new(MarkerShape.FilledCircle, 5, ColorGebunden) }, LdwLegend = new() { - Label = "68 °Oe (LDW)", LineWidth = 2, LineColor = Colors.Red, Marker = MarkerStyle.None + LabelText = "68 °Oe (LDW)", LineWidth = 2, LineColor = Colors.Red, MarkerStyle = MarkerStyle.None }, QuwLegend = new() { - Label = "73 °Oe (QUW)", LineWidth = 2, LineColor = Colors.Orange, Marker = MarkerStyle.None + LabelText = "73 °Oe (QUW)", LineWidth = 2, LineColor = Colors.Orange, MarkerStyle = MarkerStyle.None }, KabLegend = new() { - Label = "84 °Oe (KAB)", LineWidth = 2, LineColor = Colors.Green, Marker = MarkerStyle.None + LabelText = "84 °Oe (KAB)", LineWidth = 2, LineColor = Colors.Green, MarkerStyle = MarkerStyle.None }; private (Graph? Graph, int Index) LastHighlighted = (null, -1); @@ -379,7 +379,7 @@ namespace Elwig.Windows { } private void ShowLegend() { - OechslePricePlot.Plot.Legend.Location = Alignment.UpperLeft; + OechslePricePlot.Plot.Legend.Alignment = Alignment.UpperLeft; OechslePricePlot.Plot.Legend.IsVisible = true; OechslePricePlot.Plot.Legend.ManualItems.Add(LdwLegend);