ChartWindow: Replace deprecated property names
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user