Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Annotations/ArrowAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public class ArrowAnnotation : TextualAnnotation
static ArrowAnnotation()
{
TextColorProperty.OverrideDefaultValue<ArrowAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<ArrowAnnotation>(AppearanceChanged);

ArrowDirectionProperty.Changed.AddClassHandler<ArrowAnnotation>(DataChanged);
ColorProperty.Changed.AddClassHandler<ArrowAnnotation>(AppearanceChanged);
Expand Down
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Annotations/EllipseAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class EllipseAnnotation : ShapeAnnotation
static EllipseAnnotation()
{
TextColorProperty.OverrideDefaultValue<EllipseAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<EllipseAnnotation>(AppearanceChanged);

XProperty.Changed.AddClassHandler<EllipseAnnotation>(DataChanged);
YProperty.Changed.AddClassHandler<EllipseAnnotation>(DataChanged);
Expand Down
5 changes: 2 additions & 3 deletions Source/OxyPlot.Avalonia/Annotations/FunctionAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ public class FunctionAnnotation : PathAnnotation
static FunctionAnnotation()
{
TextColorProperty.OverrideDefaultValue<FunctionAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<FunctionAnnotation>(AppearanceChanged);
TextHorizontalAlignmentProperty.OverrideDefaultValue<FunctionAnnotation>(HorizontalAlignment.Right);
TextHorizontalAlignmentProperty.Changed.AddClassHandler<FunctionAnnotation>(AppearanceChanged);
TextVerticalAlignmentProperty.OverrideDefaultValue<FunctionAnnotation>(VerticalAlignment.Top);
TextVerticalAlignmentProperty.Changed.AddClassHandler<FunctionAnnotation>(AppearanceChanged);

TypeProperty.Changed.AddClassHandler<FunctionAnnotation>(DataChanged);
EquationProperty.Changed.AddClassHandler<FunctionAnnotation>(DataChanged);
ResolutionProperty.Changed.AddClassHandler<FunctionAnnotation>(DataChanged);
}

/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions Source/OxyPlot.Avalonia/Annotations/LineAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ public class LineAnnotation : PathAnnotation
static LineAnnotation()
{
TextColorProperty.OverrideDefaultValue<LineAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<LineAnnotation>(AppearanceChanged);
TextHorizontalAlignmentProperty.OverrideDefaultValue<LineAnnotation>(HorizontalAlignment.Right);
TextHorizontalAlignmentProperty.Changed.AddClassHandler<LineAnnotation>(AppearanceChanged);
TextVerticalAlignmentProperty.OverrideDefaultValue<LineAnnotation>(VerticalAlignment.Top);
TextVerticalAlignmentProperty.Changed.AddClassHandler<LineAnnotation>(AppearanceChanged);

TypeProperty.Changed.AddClassHandler<LineAnnotation>(DataChanged);
InterceptProperty.Changed.AddClassHandler<LineAnnotation>(DataChanged);
Expand Down
2 changes: 0 additions & 2 deletions Source/OxyPlot.Avalonia/Annotations/PointAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ public class PointAnnotation : ShapeAnnotation
static PointAnnotation()
{
TextColorProperty.OverrideDefaultValue<PointAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<PointAnnotation>(AppearanceChanged);
TextVerticalAlignmentProperty.OverrideDefaultValue<PointAnnotation>(VerticalAlignment.Top);
TextVerticalAlignmentProperty.Changed.AddClassHandler<PointAnnotation>(AppearanceChanged);

XProperty.Changed.AddClassHandler<PointAnnotation>(DataChanged);
YProperty.Changed.AddClassHandler<PointAnnotation>(DataChanged);
Expand Down
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Annotations/PolygonAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class PolygonAnnotation : ShapeAnnotation
static PolygonAnnotation()
{
TextColorProperty.OverrideDefaultValue<PolygonAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<PolygonAnnotation>(AppearanceChanged);

LineJoinProperty.Changed.AddClassHandler<PolygonAnnotation>(AppearanceChanged);
LineStyleProperty.Changed.AddClassHandler<PolygonAnnotation>(AppearanceChanged);
Expand Down
4 changes: 1 addition & 3 deletions Source/OxyPlot.Avalonia/Annotations/PolylineAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ public class PolylineAnnotation : PathAnnotation
static PolylineAnnotation()
{
TextColorProperty.OverrideDefaultValue<PolylineAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<PolylineAnnotation>(AppearanceChanged);
TextHorizontalAlignmentProperty.OverrideDefaultValue<PolylineAnnotation>(HorizontalAlignment.Right);
TextHorizontalAlignmentProperty.Changed.AddClassHandler<PolylineAnnotation>(AppearanceChanged);
TextVerticalAlignmentProperty.OverrideDefaultValue<PolylineAnnotation>(VerticalAlignment.Top);
TextVerticalAlignmentProperty.Changed.AddClassHandler<PolylineAnnotation>(AppearanceChanged);

InterpolationAlgorithmProperty.Changed.AddClassHandler<PolylineAnnotation>(DataChanged);
MinimumSegmentLengthProperty.Changed.AddClassHandler<PolylineAnnotation>(DataChanged);
PointsProperty.Changed.AddClassHandler<PolylineAnnotation>(DataChanged);
}

Expand Down
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Annotations/RectangleAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class RectangleAnnotation : ShapeAnnotation
static RectangleAnnotation()
{
TextColorProperty.OverrideDefaultValue<RectangleAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<RectangleAnnotation>(AppearanceChanged);

MaximumXProperty.Changed.AddClassHandler<RectangleAnnotation>(DataChanged);
MaximumYProperty.Changed.AddClassHandler<RectangleAnnotation>(DataChanged);
Expand Down
3 changes: 0 additions & 3 deletions Source/OxyPlot.Avalonia/Annotations/TextAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ public class TextAnnotation : TextualAnnotation
static TextAnnotation()
{
TextColorProperty.OverrideDefaultValue<TextAnnotation>(MoreColors.Automatic);
TextColorProperty.Changed.AddClassHandler<TextAnnotation>(AppearanceChanged);
TextHorizontalAlignmentProperty.OverrideDefaultValue<TextAnnotation>(HorizontalAlignment.Right);
TextHorizontalAlignmentProperty.Changed.AddClassHandler<TextAnnotation>(AppearanceChanged);
TextVerticalAlignmentProperty.OverrideDefaultValue<TextAnnotation>(VerticalAlignment.Top);
TextVerticalAlignmentProperty.Changed.AddClassHandler<TextAnnotation>(AppearanceChanged);

BackgroundProperty.Changed.AddClassHandler<TextAnnotation>(AppearanceChanged);
OffsetProperty.Changed.AddClassHandler<TextAnnotation>(AppearanceChanged);
Expand Down
2 changes: 0 additions & 2 deletions Source/OxyPlot.Avalonia/Axes/AngleAxis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ static AngleAxis()
IsZoomEnabledProperty.OverrideMetadata(typeof(AngleAxis), new StyledPropertyMetadata<bool>(false));
StartAngleProperty.Changed.AddClassHandler<AngleAxis>(AppearanceChanged);
EndAngleProperty.Changed.AddClassHandler<AngleAxis>(AppearanceChanged);
PositionProperty.Changed.AddClassHandler<AngleAxis>(AppearanceChanged);
TickStyleProperty.Changed.AddClassHandler<AngleAxis>(AppearanceChanged);
}

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions Source/OxyPlot.Avalonia/Axes/Axis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1599,6 +1599,8 @@ static Axis()
FontWeightProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
IntervalLengthProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
IsAxisVisibleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
IsPanEnabledProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
IsZoomEnabledProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
KeyProperty.Changed.AddClassHandler<Axis>(DataChanged);
LabelFormatterProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
LayerProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
Expand Down
1 change: 1 addition & 0 deletions Source/OxyPlot.Avalonia/Axes/CategoryAxis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static CategoryAxis()
MinimumPaddingProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata<double>(0.0));
MaximumPaddingProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata<double>(0.0));
MajorStepProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata<double>(1.0));
GapWidthProperty.Changed.AddClassHandler<CategoryAxis>(DataChanged);
IsTickCenteredProperty.Changed.AddClassHandler<CategoryAxis>(DataChanged);
ItemsProperty.Changed.AddClassHandler<CategoryAxis>(DataChanged);
LabelFieldProperty.Changed.AddClassHandler<CategoryAxis>(DataChanged);
Expand Down
4 changes: 3 additions & 1 deletion Source/OxyPlot.Avalonia/Axes/DateTimeAxis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ public class DateTimeAxis : Axis
static DateTimeAxis()
{
PositionProperty.OverrideDefaultValue<DateTimeAxis>(AxisPosition.Bottom);
PositionProperty.Changed.AddClassHandler<DateTimeAxis>(AppearanceChanged);
CalendarWeekRuleProperty.Changed.AddClassHandler<DateTimeAxis>(DataChanged);
FirstDayOfWeekProperty.Changed.AddClassHandler<DateTimeAxis>(DataChanged);
MinorIntervalTypeProperty.Changed.AddClassHandler<DateTimeAxis>(DataChanged);
IntervalTypeProperty.Changed.AddClassHandler<DateTimeAxis>(DataChanged);
FirstDateTimeProperty.Changed.AddClassHandler<DateTimeAxis>(DataChanged);
LastDateTimeProperty.Changed.AddClassHandler<DateTimeAxis>(DataChanged);
}

/// <summary>
Expand Down
10 changes: 10 additions & 0 deletions Source/OxyPlot.Avalonia/Axes/LinearAxis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ public class LinearAxis : Axis
/// </summary>
public static readonly StyledProperty<string> FractionUnitSymbolProperty = AvaloniaProperty.Register<LinearAxis, string>(nameof(FractionUnitSymbol));

/// <summary>
/// Initializes static members of the <see cref="LinearAxis" /> class.
/// </summary>
static LinearAxis()
{
FormatAsFractionsProperty.Changed.AddClassHandler<LinearAxis>(AppearanceChanged);
FractionUnitProperty.Changed.AddClassHandler<LinearAxis>(AppearanceChanged);
FractionUnitSymbolProperty.Changed.AddClassHandler<LinearAxis>(AppearanceChanged);
}

/// <summary>
/// Initializes a new instance of the <see cref = "LinearAxis" /> class.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Axes/MagnitudeAxis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ static MagnitudeAxis()
MajorGridlineStyleProperty.OverrideDefaultValue<MagnitudeAxis>(LineStyle.Solid);
MinorGridlineStyleProperty.OverrideDefaultValue<MagnitudeAxis>(LineStyle.Solid);
PositionProperty.OverrideDefaultValue<MagnitudeAxis>(AxisPosition.None);
PositionProperty.Changed.AddClassHandler<MagnitudeAxis>(AppearanceChanged);
IsPanEnabledProperty.OverrideDefaultValue<MagnitudeAxis>(false);
IsZoomEnabledProperty.OverrideDefaultValue<MagnitudeAxis>(false);
}
Expand Down
9 changes: 5 additions & 4 deletions Source/OxyPlot.Avalonia/Series/BarSeries/BarSeriesBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,20 @@ public class BarSeriesBase : CategorizedSeries
static BarSeriesBase()
{
TrackerFormatStringProperty.OverrideMetadata(typeof(BarSeriesBase), new StyledPropertyMetadata<string>(OxyPlot.Series.BarSeries.DefaultTrackerFormatString));
BaseValueProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
// BaseValue, IsStacked and StackGroup change the range of values, which the core
// recalculates only when the data is updated
BaseValueProperty.Changed.AddClassHandler<BarSeriesBase>(DataChanged);
ColorFieldProperty.Changed.AddClassHandler<BarSeriesBase>(DataChanged);
FillColorProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
IsStackedProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
IsStackedProperty.Changed.AddClassHandler<BarSeriesBase>(DataChanged);
LabelFormatStringProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
LabelMarginProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
LabelPlacementProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
NegativeFillColorProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
StackGroupProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
StackGroupProperty.Changed.AddClassHandler<BarSeriesBase>(DataChanged);
StrokeColorProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
StrokeThicknessProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
ValueFieldProperty.Changed.AddClassHandler<BarSeriesBase>(DataChanged);
TrackerFormatStringProperty.Changed.AddClassHandler<BarSeriesBase>(AppearanceChanged);
}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Series/BoxPlotSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ static BoxPlotSeries()
StrokeProperty.Changed.AddClassHandler<BoxPlotSeries>(AppearanceChanged);
StrokeThicknessProperty.Changed.AddClassHandler<BoxPlotSeries>(AppearanceChanged);
WhiskerWidthProperty.Changed.AddClassHandler<BoxPlotSeries>(AppearanceChanged);
TrackerFormatStringProperty.Changed.AddClassHandler<BoxPlotSeries>(AppearanceChanged);
}

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions Source/OxyPlot.Avalonia/Series/DataPointSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static DataPointSeries()
CanTrackerInterpolatePointsProperty.Changed.AddClassHandler<DataPointSeries>(AppearanceChanged);
DataFieldXProperty.Changed.AddClassHandler<DataPointSeries>(DataChanged);
DataFieldYProperty.Changed.AddClassHandler<DataPointSeries>(DataChanged);
MappingProperty.Changed.AddClassHandler<DataPointSeries>(DataChanged);
}
}
}
13 changes: 8 additions & 5 deletions Source/OxyPlot.Avalonia/Series/HeatMapSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ static HeatMapSeries()
{
TrackerFormatStringProperty.OverrideMetadata(typeof(HeatMapSeries), new StyledPropertyMetadata<string>(OxyPlot.Series.HeatMapSeries.DefaultTrackerFormatString));
DataProperty.Changed.AddClassHandler<HeatMapSeries>(DataChanged);
X0Property.Changed.AddClassHandler<HeatMapSeries>(AppearanceChanged);
X1Property.Changed.AddClassHandler<HeatMapSeries>(AppearanceChanged);
Y0Property.Changed.AddClassHandler<HeatMapSeries>(AppearanceChanged);
Y1Property.Changed.AddClassHandler<HeatMapSeries>(AppearanceChanged);
TrackerFormatStringProperty.Changed.AddClassHandler<HeatMapSeries>(AppearanceChanged);

// The core computes the series bounds in UpdateMaxMin, that is, only when the data is updated:
// otherwise the axes are not rescaled to the new coordinates.
X0Property.Changed.AddClassHandler<HeatMapSeries>(DataChanged);
X1Property.Changed.AddClassHandler<HeatMapSeries>(DataChanged);
Y0Property.Changed.AddClassHandler<HeatMapSeries>(DataChanged);
Y1Property.Changed.AddClassHandler<HeatMapSeries>(DataChanged);
ColorAxisKeyProperty.Changed.AddClassHandler<HeatMapSeries>(AppearanceChanged);
}

/// <summary>
Expand Down
7 changes: 6 additions & 1 deletion Source/OxyPlot.Avalonia/Series/LineSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ static LineSeries()
MarkerTypeProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);
MinimumSegmentLengthProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);
StrokeThicknessProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);
CanTrackerInterpolatePointsProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);
LabelFormatStringProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);
LabelMarginProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);
LineLegendPositionProperty.Changed.AddClassHandler<LineSeries>(AppearanceChanged);

// The core recalculates the smoothed points only when the data is updated
InterpolationAlgorithmProperty.Changed.AddClassHandler<LineSeries>(DataChanged);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Source/OxyPlot.Avalonia/Series/PieSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ static PieSeries()
TickRadialLengthProperty.Changed.AddClassHandler<PieSeries>(AppearanceChanged);
TickHorizontalLengthProperty.Changed.AddClassHandler<PieSeries>(AppearanceChanged);
TickLabelDistanceProperty.Changed.AddClassHandler<PieSeries>(AppearanceChanged);
ExplodedDistanceProperty.Changed.AddClassHandler<PieSeries>(AppearanceChanged);
LabelFieldProperty.Changed.AddClassHandler<PieSeries>(DataChanged);
ValueFieldProperty.Changed.AddClassHandler<PieSeries>(DataChanged);
ColorFieldProperty.Changed.AddClassHandler<PieSeries>(DataChanged);
IsExplodedFieldProperty.Changed.AddClassHandler<PieSeries>(DataChanged);
TrackerFormatStringProperty.Changed.AddClassHandler<PieSeries>(AppearanceChanged);
}

/// <summary>
Expand Down
14 changes: 11 additions & 3 deletions Source/OxyPlot.Avalonia/Series/Series.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ public abstract class Series : ItemsControl
/// </summary>
static Series()
{
IsVisibleProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
// The core loads the data and computes the axis ranges only for visible series and only
// when the data is updated. Therefore showing and hiding a series is a data change.
IsVisibleProperty.Changed.AddClassHandler<Series>(DataChanged);
BackgroundProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
ForegroundProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
FontFamilyProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
ColorProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
TitleProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
RenderInLegendProperty.Changed.AddClassHandler<Series>(AppearanceChanged);
Expand Down Expand Up @@ -258,8 +262,12 @@ protected virtual void SynchronizeProperties(OxyPlot.Series.Series s)
s.TrackerKey = TrackerKey;
s.TrackerFormatString = TrackerFormatString;
s.IsVisible = IsVisible;
s.Font = FontFamily.ToString();
s.TextColor = Foreground.ToOxyColor();

// Foreground and FontFamily are inherited from the window and the theme. They are copied only if
// they are set on the series itself, otherwise the labels follow Plot.TextColor and Plot.DefaultFont,
// like those of the axes, and do not turn white on a white background in a dark theme.
s.Font = IsSet(FontFamilyProperty) ? FontFamily.ToString() : null;
s.TextColor = IsSet(ForegroundProperty) ? Foreground.ToOxyColor() : OxyColors.Automatic;
s.EdgeRenderingMode = EdgeRenderingMode;
}

Expand Down
4 changes: 2 additions & 2 deletions Source/OxyPlot.Avalonia/Series/TwoColorAreaSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ protected override void SynchronizeProperties(OxyPlot.Series.Series series)

static TwoColorAreaSeries()
{
FillProperty.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
Fill2Property.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
MarkerFill2Property.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
MarkerStroke2Property.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
LimitProperty.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
// The core splits the points into the parts above and below the limit in UpdateData, not while rendering
LimitProperty.Changed.AddClassHandler<TwoColorAreaSeries>(DataChanged);
Dashes2Property.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
LineStyle2Property.Changed.AddClassHandler<TwoColorAreaSeries>(AppearanceChanged);
}
Expand Down
1 change: 0 additions & 1 deletion Source/OxyPlot.Avalonia/Series/XYAxisSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ static XYAxisSeries()
TrackerFormatStringProperty.OverrideMetadata(typeof(XYAxisSeries), new StyledPropertyMetadata<string>(OxyPlot.Series.XYAxisSeries.DefaultTrackerFormatString));
XAxisKeyProperty.Changed.AddClassHandler<XYAxisSeries>(AppearanceChanged);
YAxisKeyProperty.Changed.AddClassHandler<XYAxisSeries>(AppearanceChanged);
TrackerFormatStringProperty.Changed.AddClassHandler<XYAxisSeries>(AppearanceChanged);
}

/// <summary>
Expand Down