ChartWindow: Replace deprecated property names

This commit is contained in:
2024-05-03 10:31:12 +02:00
parent eb4562dceb
commit 0ce8e488f9

View File

@ -38,21 +38,21 @@ namespace Elwig.Windows {
private static readonly LegendItem private static readonly LegendItem
UngebundenLegend = new() { UngebundenLegend = new() {
Label = "Ungebunden", LineWidth = 1, LineColor = ColorUngebunden, LabelText = "Ungebunden", LineWidth = 1, LineColor = ColorUngebunden,
Marker = new(MarkerShape.FilledCircle, 5, ColorUngebunden) MarkerStyle = new(MarkerShape.FilledCircle, 5, ColorUngebunden)
}, },
GebundenLegend = new() { GebundenLegend = new() {
Label = "Gebunden", LineWidth = 1, LineColor = ColorGebunden, LabelText = "Gebunden", LineWidth = 1, LineColor = ColorGebunden,
Marker = new(MarkerShape.FilledCircle, 5, ColorGebunden) MarkerStyle = new(MarkerShape.FilledCircle, 5, ColorGebunden)
}, },
LdwLegend = new() { 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() { 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() { 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); private (Graph? Graph, int Index) LastHighlighted = (null, -1);
@ -379,7 +379,7 @@ namespace Elwig.Windows {
} }
private void ShowLegend() { private void ShowLegend() {
OechslePricePlot.Plot.Legend.Location = Alignment.UpperLeft; OechslePricePlot.Plot.Legend.Alignment = Alignment.UpperLeft;
OechslePricePlot.Plot.Legend.IsVisible = true; OechslePricePlot.Plot.Legend.IsVisible = true;
OechslePricePlot.Plot.Legend.ManualItems.Add(LdwLegend); OechslePricePlot.Plot.Legend.ManualItems.Add(LdwLegend);