12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646 |
- // --------------------------------------------------------------------------------------------------------------------
- // <copyright file="Axis.cs" company="OxyPlot">
- // Copyright (c) 2014 OxyPlot contributors
- // </copyright>
- // <summary>
- // The axis base.
- // </summary>
- // --------------------------------------------------------------------------------------------------------------------
- using Avalonia;
- namespace OxyPlot.Avalonia
- {
- using global::Avalonia.Controls;
- using global::Avalonia.Media;
- using System;
- /// <summary>
- /// The axis base.
- /// </summary>
- public abstract class Axis : Control
- {
- /// <summary>
- /// Identifies the <see cref="AbsoluteMaximum"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AbsoluteMaximumProperty = AvaloniaProperty.Register<Axis, double>(nameof(AbsoluteMaximum), double.MaxValue);
- /// <summary>
- /// Identifies the <see cref="AbsoluteMinimum"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AbsoluteMinimumProperty = AvaloniaProperty.Register<Axis, double>(nameof(AbsoluteMinimum), double.MinValue);
- /// <summary>
- /// Identifies the <see cref="Angle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AngleProperty = AvaloniaProperty.Register<Axis, double>(nameof(Angle), 0.0);
- /// <summary>
- /// Identifies the <see cref="AxisTickToLabelDistance"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AxisTickToLabelDistanceProperty = AvaloniaProperty.Register<Axis, double>(nameof(AxisTickToLabelDistance), 4.0);
- /// <summary>
- /// Identifies the <see cref="AxisTitleDistance"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AxisTitleDistanceProperty = AvaloniaProperty.Register<Axis, double>(nameof(AxisTitleDistance), 4.0);
- /// <summary>
- /// Identifies the <see cref="AxisDistance"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AxisDistanceProperty = AvaloniaProperty.Register<Axis, double>(nameof(AxisDistance), 0.0);
- /// <summary>
- /// Identifies the <see cref="AxislineColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> AxislineColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(AxislineColor), Colors.Black);
- /// <summary>
- /// Identifies the <see cref="AxislineStyle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<LineStyle> AxislineStyleProperty = AvaloniaProperty.Register<Axis, LineStyle>(nameof(AxislineStyle), LineStyle.None);
- /// <summary>
- /// Identifies the <see cref="AxislineThickness"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> AxislineThicknessProperty = AvaloniaProperty.Register<Axis, double>(nameof(AxislineThickness), 1.0);
- /// <summary>
- /// Identifies the <see cref="ClipTitle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<bool> ClipTitleProperty = AvaloniaProperty.Register<Axis, bool>(nameof(ClipTitle), true);
- /// <summary>
- /// Identifies the <see cref="EndPosition"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> EndPositionProperty = AvaloniaProperty.Register<Axis, double>(nameof(EndPosition), 1.0);
- /// <summary>
- /// Identifies the <see cref="ExtraGridlineColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> ExtraGridlineColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(ExtraGridlineColor), Colors.Black);
- /// <summary>
- /// Identifies the <see cref="ExtraGridlineStyle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<LineStyle> ExtraGridlineStyleProperty = AvaloniaProperty.Register<Axis, LineStyle>(nameof(ExtraGridlineStyle), LineStyle.Solid);
- /// <summary>
- /// Identifies the <see cref="ExtraGridlineThickness"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> ExtraGridlineThicknessProperty = AvaloniaProperty.Register<Axis, double>(nameof(ExtraGridlineThickness), 1.0);
- /// <summary>
- /// Identifies the <see cref="ExtraGridlines"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double[]> ExtraGridlinesProperty = AvaloniaProperty.Register<Axis, double[]>("ExtraGridLines", null);
- /// <summary>
- /// Identifies the <see cref="FilterFunction"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Func<double, bool>> FilterFunctionProperty = AvaloniaProperty.Register<Axis, Func<double, bool>>(nameof(FilterFunction), null);
- /// <summary>
- /// Identifies the <see cref="FilterMaxValue"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> FilterMaxValueProperty = AvaloniaProperty.Register<Axis, double>(nameof(FilterMaxValue), double.MaxValue);
- /// <summary>
- /// Identifies the <see cref="FilterMinValue"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> FilterMinValueProperty = AvaloniaProperty.Register<Axis, double>(nameof(FilterMinValue), double.MinValue);
- /// <summary>
- /// Identifies the <see cref="Font"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> FontProperty = AvaloniaProperty.Register<Axis, string>(nameof(Font), null);
- /// <summary>
- /// Identifies the <see cref="FontSize"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> FontSizeProperty = AvaloniaProperty.Register<Axis, double>(nameof(FontSize), double.NaN);
- /// <summary>
- /// Identifies the <see cref="FontWeight"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<FontWeight> FontWeightProperty = AvaloniaProperty.Register<Axis, FontWeight>(nameof(FontWeight), FontWeight.Normal);
- /// <summary>
- /// Identifies the <see cref="IntervalLength"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> IntervalLengthProperty = AvaloniaProperty.Register<Axis, double>(nameof(IntervalLength), 60.0);
- /// <summary>
- /// Identifies the <see cref="IsAxisVisible"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<bool> IsAxisVisibleProperty = AvaloniaProperty.Register<Axis, bool>(nameof(IsAxisVisible), true);
- /// <summary>
- /// Identifies the <see cref="IsPanEnabled"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<bool> IsPanEnabledProperty = AvaloniaProperty.Register<Axis, bool>(nameof(IsPanEnabled), true);
- /// <summary>
- /// Identifies the <see cref="IsZoomEnabled"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<bool> IsZoomEnabledProperty = AvaloniaProperty.Register<Axis, bool>(nameof(IsZoomEnabled), true);
- /// <summary>
- /// Identifies the <see cref="Key"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> KeyProperty = AvaloniaProperty.Register<Axis, string>(nameof(Key), null);
- /// <summary>
- /// Identifies the <see cref="LabelFormatter"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Func<double, string>> LabelFormatterProperty = AvaloniaProperty.Register<Axis, Func<double, string>>(nameof(LabelFormatter), null);
- /// <summary>
- /// Identifies the <see cref="Layer"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Axes.AxisLayer> LayerProperty = AvaloniaProperty.Register<Axis, Axes.AxisLayer>(nameof(Layer), Axes.AxisLayer.BelowSeries);
- /// <summary>
- /// Identifies the <see cref="MajorGridlineColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> MajorGridlineColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(MajorGridlineColor), Color.FromArgb(0x40, 0, 0, 0));
- /// <summary>
- /// Identifies the <see cref="MajorGridlineStyle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<LineStyle> MajorGridlineStyleProperty = AvaloniaProperty.Register<Axis, LineStyle>(nameof(MajorGridlineStyle), LineStyle.None);
- /// <summary>
- /// Identifies the <see cref="MajorGridlineThickness"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MajorGridlineThicknessProperty = AvaloniaProperty.Register<Axis, double>(nameof(MajorGridlineThickness), 1.0);
- /// <summary>
- /// Identifies the <see cref="MajorStep"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MajorStepProperty = AvaloniaProperty.Register<Axis, double>(nameof(MajorStep), double.NaN);
- /// <summary>
- /// Identifies the <see cref="MajorTickSize"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MajorTickSizeProperty = AvaloniaProperty.Register<Axis, double>(nameof(MajorTickSize), 7.0);
- /// <summary>
- /// Identifies the <see cref="MaximumPadding"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MaximumPaddingProperty = AvaloniaProperty.Register<Axis, double>(nameof(MaximumPadding), 0.01);
- /// <summary>
- /// Identifies the <see cref="MaximumMargin"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MaximumMarginProperty = AvaloniaProperty.Register<Axis, double>(nameof(MaximumMargin), 0.0);
- /// <summary>
- /// Identifies the <see cref="MaximumDataMargin"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MaximumDataMarginProperty = AvaloniaProperty.Register<Axis, double>(nameof(MaximumDataMargin), 0.0);
- /// <summary>
- /// Identifies the <see cref="Maximum"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MaximumProperty = AvaloniaProperty.Register<Axis, double>(nameof(Maximum), double.NaN);
- /// <summary>
- /// Identifies the <see cref="MaximumRange"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MaximumRangeProperty = AvaloniaProperty.Register<Axis, double>(nameof(MaximumRange), double.PositiveInfinity);
- /// <summary>
- /// Identifies the <see cref="MinimumPadding"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinimumPaddingProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinimumPadding), 0.01);
- /// <summary>
- /// Identifies the <see cref="MinimumMargin"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinimumMarginProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinimumMargin), 0.0);
- /// <summary>
- /// Identifies the <see cref="MinimumDataMargin"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinimumDataMarginProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinimumDataMargin), 0.0);
- /// <summary>
- /// Identifies the <see cref="Minimum"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinimumProperty = AvaloniaProperty.Register<Axis, double>(nameof(Minimum), double.NaN);
- /// <summary>
- /// Identifies the <see cref="MinimumRange"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinimumRangeProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinimumRange), 0.0);
- /// <summary>
- /// Identifies the <see cref="MinorGridlineColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> MinorGridlineColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(MinorGridlineColor), Color.FromArgb(0x20, 0, 0, 0));
- /// <summary>
- /// Identifies the <see cref="MinorGridlineStyle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<LineStyle> MinorGridlineStyleProperty = AvaloniaProperty.Register<Axis, LineStyle>(nameof(MinorGridlineStyle), LineStyle.None);
- /// <summary>
- /// Identifies the <see cref="MinorGridlineThickness"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinorGridlineThicknessProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinorGridlineThickness), 1.0);
- /// <summary>
- /// Identifies the <see cref="MinorStep"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinorStepProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinorStep), double.NaN);
- /// <summary>
- /// Identifies the <see cref="MinorTickSize"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> MinorTickSizeProperty = AvaloniaProperty.Register<Axis, double>(nameof(MinorTickSize), 4.0);
- /// <summary>
- /// Identifies the <see cref="PositionAtZeroCrossing"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<bool> PositionAtZeroCrossingProperty = AvaloniaProperty.Register<Axis, bool>(nameof(PositionAtZeroCrossing), false);
- /// <summary>
- /// Identifies the <see cref="Position"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Axes.AxisPosition> PositionProperty = AvaloniaProperty.Register<Axis, Axes.AxisPosition>(nameof(Position), Axes.AxisPosition.Left);
- /// <summary>
- /// Identifies the <see cref="PositionTier"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<int> PositionTierProperty = AvaloniaProperty.Register<Axis, int>(nameof(PositionTier), 0);
- /// <summary>
- /// Identifies the <see cref="StartPosition"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> StartPositionProperty = AvaloniaProperty.Register<Axis, double>(nameof(StartPosition), 0.0);
- /// <summary>
- /// Identifies the <see cref="StringFormat"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> StringFormatProperty = AvaloniaProperty.Register<Axis, string>(nameof(StringFormat), null);
- /// <summary>
- /// Identifies the <see cref="TextColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> TextColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(TextColor), MoreColors.Automatic);
- /// <summary>
- /// Identifies the <see cref="TickStyle"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Axes.TickStyle> TickStyleProperty = AvaloniaProperty.Register<Axis, Axes.TickStyle>(nameof(TickStyle), Axes.TickStyle.Outside);
- /// <summary>
- /// Identifies the <see cref="TicklineColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> TicklineColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(TicklineColor), Colors.Black);
- /// <summary>
- /// Identifies the <see cref="TitleClippingLength"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> TitleClippingLengthProperty = AvaloniaProperty.Register<Axis, double>(nameof(TitleClippingLength), 0.9);
- /// <summary>
- /// Identifies the <see cref="TitleColor"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<Color> TitleColorProperty = AvaloniaProperty.Register<Axis, Color>(nameof(TitleColor), OxyColors.Automatic.ToColor());
- /// <summary>
- /// Identifies the <see cref="TitleFont"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> TitleFontProperty = AvaloniaProperty.Register<Axis, string>(nameof(TitleFont), null);
- /// <summary>
- /// Identifies the <see cref="TitleFontSize"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> TitleFontSizeProperty = AvaloniaProperty.Register<Axis, double>(nameof(TitleFontSize), double.NaN);
- /// <summary>
- /// Identifies the <see cref="TitleFontWeight"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<FontWeight> TitleFontWeightProperty = AvaloniaProperty.Register<Axis, FontWeight>(nameof(TitleFontWeight), FontWeight.Normal);
- /// <summary>
- /// Identifies the <see cref="TitleFormatString"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> TitleFormatStringProperty = AvaloniaProperty.Register<Axis, string>(nameof(TitleFormatString), "{0} [{1}]");
- /// <summary>
- /// Identifies the <see cref="TitlePosition"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<double> TitlePositionProperty = AvaloniaProperty.Register<Axis, double>(nameof(TitlePosition), 0.5);
- /// <summary>
- /// Identifies the <see cref="Title"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> TitleProperty = AvaloniaProperty.Register<Axis, string>(nameof(Title), null);
- /// <summary>
- /// Identifies the <see cref="Unit"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<string> UnitProperty = AvaloniaProperty.Register<Axis, string>(nameof(Unit), null);
- /// <summary>
- /// Identifies the <see cref="UseSuperExponentialFormat"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<bool> UseSuperExponentialFormatProperty = AvaloniaProperty.Register<Axis, bool>(nameof(UseSuperExponentialFormat), false);
- /// <summary>
- /// Identifies the <see cref="EdgeRenderingMode"/> dependency property.
- /// </summary>
- public static readonly StyledProperty<EdgeRenderingMode> EdgeRenderingModeProperty = AvaloniaProperty.Register<Axis, EdgeRenderingMode>(nameof(EdgeRenderingMode), EdgeRenderingMode.Automatic);
- /// <summary>
- /// Gets or sets the internal axis.
- /// </summary>
- public Axes.Axis InternalAxis { get; protected set; }
- /// <summary>
- /// Gets or sets the absolute maximum. This is only used for the UI control. It will not be possible to zoom/pan beyond this limit.
- /// </summary>
- public double AbsoluteMaximum
- {
- get
- {
- return GetValue(AbsoluteMaximumProperty);
- }
- set
- {
- SetValue(AbsoluteMaximumProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the absolute minimum. This is only used for the UI control. It will not be possible to zoom/pan beyond this limit.
- /// </summary>
- public double AbsoluteMinimum
- {
- get
- {
- return GetValue(AbsoluteMinimumProperty);
- }
- set
- {
- SetValue(AbsoluteMinimumProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Angle.
- /// </summary>
- public double Angle
- {
- get
- {
- return GetValue(AngleProperty);
- }
- set
- {
- SetValue(AngleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets AxisDistance.
- /// </summary>
- public double AxisDistance
- {
- get
- {
- return GetValue(AxisDistanceProperty);
- }
- set
- {
- SetValue(AxisDistanceProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets AxisTickToLabelDistance.
- /// </summary>
- public double AxisTickToLabelDistance
- {
- get
- {
- return GetValue(AxisTickToLabelDistanceProperty);
- }
- set
- {
- SetValue(AxisTickToLabelDistanceProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets AxisTitleDistance.
- /// </summary>
- public double AxisTitleDistance
- {
- get
- {
- return GetValue(AxisTitleDistanceProperty);
- }
- set
- {
- SetValue(AxisTitleDistanceProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the color of the axis line.
- /// </summary>
- /// <value>The color of the axis line.</value>
- public Color AxislineColor
- {
- get
- {
- return GetValue(AxislineColorProperty);
- }
- set
- {
- SetValue(AxislineColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the axis line style.
- /// </summary>
- /// <value>The axis line style.</value>
- public LineStyle AxislineStyle
- {
- get
- {
- return GetValue(AxislineStyleProperty);
- }
- set
- {
- SetValue(AxislineStyleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the axis line thickness.
- /// </summary>
- /// <value>The axis line thickness.</value>
- public double AxislineThickness
- {
- get
- {
- return GetValue(AxislineThicknessProperty);
- }
- set
- {
- SetValue(AxislineThicknessProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets a value indicating whether [clip title].
- /// </summary>
- /// <value><c>true</c> if [clip title]; otherwise, <c>false</c> .</value>
- public bool ClipTitle
- {
- get
- {
- return GetValue(ClipTitleProperty);
- }
- set
- {
- SetValue(ClipTitleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets EndPosition.
- /// </summary>
- public double EndPosition
- {
- get
- {
- return GetValue(EndPositionProperty);
- }
- set
- {
- SetValue(EndPositionProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets ExtraGridlineColor.
- /// </summary>
- public Color ExtraGridlineColor
- {
- get
- {
- return GetValue(ExtraGridlineColorProperty);
- }
- set
- {
- SetValue(ExtraGridlineColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets ExtraGridlineStyle.
- /// </summary>
- public LineStyle ExtraGridlineStyle
- {
- get
- {
- return GetValue(ExtraGridlineStyleProperty);
- }
- set
- {
- SetValue(ExtraGridlineStyleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets ExtraGridlineThickness.
- /// </summary>
- public double ExtraGridlineThickness
- {
- get
- {
- return GetValue(ExtraGridlineThicknessProperty);
- }
- set
- {
- SetValue(ExtraGridlineThicknessProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets ExtraGridLines.
- /// </summary>
- public double[] ExtraGridlines
- {
- get
- {
- return GetValue(ExtraGridlinesProperty);
- }
- set
- {
- SetValue(ExtraGridlinesProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the filter function.
- /// </summary>
- /// <value>The filter function.</value>
- public Func<double, bool> FilterFunction
- {
- get
- {
- return GetValue(FilterFunctionProperty);
- }
- set
- {
- SetValue(FilterFunctionProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets FilterMaxValue.
- /// </summary>
- public double FilterMaxValue
- {
- get
- {
- return GetValue(FilterMaxValueProperty);
- }
- set
- {
- SetValue(FilterMaxValueProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets FilterMinValue.
- /// </summary>
- public double FilterMinValue
- {
- get
- {
- return GetValue(FilterMinValueProperty);
- }
- set
- {
- SetValue(FilterMinValueProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Font.
- /// </summary>
- public string Font
- {
- get
- {
- return GetValue(FontProperty);
- }
- set
- {
- SetValue(FontProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets FontSize.
- /// </summary>
- public double FontSize
- {
- get
- {
- return GetValue(FontSizeProperty);
- }
- set
- {
- SetValue(FontSizeProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the font weight.
- /// </summary>
- public FontWeight FontWeight
- {
- get
- {
- return GetValue(FontWeightProperty);
- }
- set
- {
- SetValue(FontWeightProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the interval length.
- /// </summary>
- public double IntervalLength
- {
- get
- {
- return GetValue(IntervalLengthProperty);
- }
- set
- {
- SetValue(IntervalLengthProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets a value indicating whether the axis is visible.
- /// </summary>
- public bool IsAxisVisible
- {
- get
- {
- return GetValue(IsAxisVisibleProperty);
- }
- set
- {
- SetValue(IsAxisVisibleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets a value indicating whether pan is enabled.
- /// </summary>
- public bool IsPanEnabled
- {
- get
- {
- return GetValue(IsPanEnabledProperty);
- }
- set
- {
- SetValue(IsPanEnabledProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets a value indicating whether zoom is enabled.
- /// </summary>
- public bool IsZoomEnabled
- {
- get
- {
- return GetValue(IsZoomEnabledProperty);
- }
- set
- {
- SetValue(IsZoomEnabledProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the axis key.
- /// </summary>
- public string Key
- {
- get
- {
- return GetValue(KeyProperty);
- }
- set
- {
- SetValue(KeyProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the label formatter.
- /// </summary>
- public Func<double, string> LabelFormatter
- {
- get
- {
- return GetValue(LabelFormatterProperty);
- }
- set
- {
- SetValue(LabelFormatterProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the layer.
- /// </summary>
- public Axes.AxisLayer Layer
- {
- get
- {
- return GetValue(LayerProperty);
- }
- set
- {
- SetValue(LayerProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the color of the major gridlines.
- /// </summary>
- public Color MajorGridlineColor
- {
- get
- {
- return GetValue(MajorGridlineColorProperty);
- }
- set
- {
- SetValue(MajorGridlineColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the line style of the major gridlines.
- /// </summary>
- public LineStyle MajorGridlineStyle
- {
- get
- {
- return GetValue(MajorGridlineStyleProperty);
- }
- set
- {
- SetValue(MajorGridlineStyleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MajorGridlineThickness.
- /// </summary>
- public double MajorGridlineThickness
- {
- get
- {
- return GetValue(MajorGridlineThicknessProperty);
- }
- set
- {
- SetValue(MajorGridlineThicknessProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MajorStep.
- /// </summary>
- public double MajorStep
- {
- get
- {
- return GetValue(MajorStepProperty);
- }
- set
- {
- SetValue(MajorStepProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MajorTickSize.
- /// </summary>
- public double MajorTickSize
- {
- get
- {
- return GetValue(MajorTickSizeProperty);
- }
- set
- {
- SetValue(MajorTickSizeProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Maximum.
- /// </summary>
- public double Maximum
- {
- get
- {
- return GetValue(MaximumProperty);
- }
- set
- {
- SetValue(MaximumProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MaximumPadding.
- /// </summary>
- public double MaximumPadding
- {
- get
- {
- return GetValue(MaximumPaddingProperty);
- }
- set
- {
- SetValue(MaximumPaddingProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Margin.
- /// </summary>
- public double MaximumMargin
- {
- get
- {
- return GetValue(MaximumMarginProperty);
- }
- set
- {
- SetValue(MaximumMarginProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets DataMargin.
- /// </summary>
- public double MaximumDataMargin
- {
- get
- {
- return GetValue(MaximumDataMarginProperty);
- }
- set
- {
- SetValue(MaximumDataMarginProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MaximumRange.
- /// </summary>
- public double MaximumRange
- {
- get
- {
- return GetValue(MaximumRangeProperty);
- }
- set
- {
- SetValue(MaximumRangeProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Minimum.
- /// </summary>
- public double Minimum
- {
- get
- {
- return GetValue(MinimumProperty);
- }
- set
- {
- SetValue(MinimumProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinimumPadding.
- /// </summary>
- public double MinimumPadding
- {
- get
- {
- return GetValue(MinimumPaddingProperty);
- }
- set
- {
- SetValue(MinimumPaddingProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Margin.
- /// </summary>
- public double MinimumMargin
- {
- get
- {
- return GetValue(MinimumMarginProperty);
- }
- set
- {
- SetValue(MinimumMarginProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets DataMargin.
- /// </summary>
- public double MinimumDataMargin
- {
- get
- {
- return GetValue(MinimumDataMarginProperty);
- }
- set
- {
- SetValue(MinimumDataMarginProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinimumRange.
- /// </summary>
- public double MinimumRange
- {
- get
- {
- return GetValue(MinimumRangeProperty);
- }
- set
- {
- SetValue(MinimumRangeProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinorGridlineColor.
- /// </summary>
- public Color MinorGridlineColor
- {
- get
- {
- return GetValue(MinorGridlineColorProperty);
- }
- set
- {
- SetValue(MinorGridlineColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinorGridlineStyle.
- /// </summary>
- public LineStyle MinorGridlineStyle
- {
- get
- {
- return GetValue(MinorGridlineStyleProperty);
- }
- set
- {
- SetValue(MinorGridlineStyleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinorGridlineThickness.
- /// </summary>
- public double MinorGridlineThickness
- {
- get
- {
- return GetValue(MinorGridlineThicknessProperty);
- }
- set
- {
- SetValue(MinorGridlineThicknessProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinorStep.
- /// </summary>
- public double MinorStep
- {
- get
- {
- return GetValue(MinorStepProperty);
- }
- set
- {
- SetValue(MinorStepProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets MinorTickSize.
- /// </summary>
- public double MinorTickSize
- {
- get
- {
- return GetValue(MinorTickSizeProperty);
- }
- set
- {
- SetValue(MinorTickSizeProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Position.
- /// </summary>
- public Axes.AxisPosition Position
- {
- get
- {
- return GetValue(PositionProperty);
- }
- set
- {
- SetValue(PositionProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets a value indicating whether PositionAtZeroCrossing.
- /// </summary>
- public bool PositionAtZeroCrossing
- {
- get
- {
- return GetValue(PositionAtZeroCrossingProperty);
- }
- set
- {
- SetValue(PositionAtZeroCrossingProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the position tier which defines in which tier the axis is displayed.
- /// </summary>
- /// <remarks>The bigger the value the further afar is the axis from the graph.</remarks>
- public int PositionTier
- {
- get
- {
- return GetValue(PositionTierProperty);
- }
- set
- {
- SetValue(PositionTierProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the start position.
- /// </summary>
- public double StartPosition
- {
- get
- {
- return GetValue(StartPositionProperty);
- }
- set
- {
- SetValue(StartPositionProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the string format.
- /// </summary>
- public string StringFormat
- {
- get
- {
- return GetValue(StringFormatProperty);
- }
- set
- {
- SetValue(StringFormatProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the text color
- /// </summary>
- public Color TextColor
- {
- get
- {
- return GetValue(TextColorProperty);
- }
- set
- {
- SetValue(TextColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the tick style.
- /// </summary>
- public Axes.TickStyle TickStyle
- {
- get
- {
- return GetValue(TickStyleProperty);
- }
- set
- {
- SetValue(TickStyleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the tick line color.
- /// </summary>
- public Color TicklineColor
- {
- get
- {
- return GetValue(TicklineColorProperty);
- }
- set
- {
- SetValue(TicklineColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the title.
- /// </summary>
- public string Title
- {
- get
- {
- return GetValue(TitleProperty);
- }
- set
- {
- SetValue(TitleProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the length of the title clipping.
- /// </summary>
- /// <value>The length of the title clipping.</value>
- public double TitleClippingLength
- {
- get
- {
- return GetValue(TitleClippingLengthProperty);
- }
- set
- {
- SetValue(TitleClippingLengthProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the color of the title.
- /// </summary>
- /// <value>The color of the title.</value>
- public Color TitleColor
- {
- get
- {
- return GetValue(TitleColorProperty);
- }
- set
- {
- SetValue(TitleColorProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the title font.
- /// </summary>
- /// <value>The title font.</value>
- public string TitleFont
- {
- get
- {
- return GetValue(TitleFontProperty);
- }
- set
- {
- SetValue(TitleFontProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the size of the title font.
- /// </summary>
- /// <value>The size of the title font.</value>
- public double TitleFontSize
- {
- get
- {
- return GetValue(TitleFontSizeProperty);
- }
- set
- {
- SetValue(TitleFontSizeProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the title font weight.
- /// </summary>
- /// <value>The title font weight.</value>
- public FontWeight TitleFontWeight
- {
- get
- {
- return GetValue(TitleFontWeightProperty);
- }
- set
- {
- SetValue(TitleFontWeightProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets TitleFormatString.
- /// </summary>
- public string TitleFormatString
- {
- get
- {
- return GetValue(TitleFormatStringProperty);
- }
- set
- {
- SetValue(TitleFormatStringProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets TitlePosition.
- /// </summary>
- public double TitlePosition
- {
- get
- {
- return GetValue(TitlePositionProperty);
- }
- set
- {
- SetValue(TitlePositionProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets Unit.
- /// </summary>
- public string Unit
- {
- get
- {
- return GetValue(UnitProperty);
- }
- set
- {
- SetValue(UnitProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets a value indicating whether UseSuperExponentialFormat.
- /// </summary>
- public bool UseSuperExponentialFormat
- {
- get
- {
- return GetValue(UseSuperExponentialFormatProperty);
- }
- set
- {
- SetValue(UseSuperExponentialFormatProperty, value);
- }
- }
- /// <summary>
- /// Gets or sets the <see cref="OxyPlot.EdgeRenderingMode"/> for the axis.
- /// </summary>
- public EdgeRenderingMode EdgeRenderingMode
- {
- get
- {
- return GetValue(EdgeRenderingModeProperty);
- }
- set
- {
- SetValue(EdgeRenderingModeProperty, value);
- }
- }
- /// <summary>
- /// Creates the model.
- /// </summary>
- /// <returns>An axis object.</returns>
- public abstract Axes.Axis CreateModel();
- /// <summary>
- /// The visual appearance changed.
- /// </summary>
- /// <param name="d">The sender.</param>
- /// <param name="e">The event args.</param>
- protected static void AppearanceChanged(AvaloniaObject d, AvaloniaPropertyChangedEventArgs e)
- {
- ((Axis)d).OnVisualChanged();
- }
- /// <summary>
- /// The on visual changed handler.
- /// </summary>
- protected void OnVisualChanged()
- {
- (this.Parent as IPlot)?.ElementAppearanceChanged(this);
- }
- /// <summary>
- /// The data changed.
- /// </summary>
- /// <param name="d">The sender.</param>
- /// <param name="e">The event args.</param>
- protected static void DataChanged(AvaloniaObject d, AvaloniaPropertyChangedEventArgs e)
- {
- ((Axis)d).OnDataChanged();
- }
- /// <summary>
- /// The on data changed handler.
- /// </summary>
- protected void OnDataChanged()
- {
- (this.Parent as IPlot)?.ElementDataChanged(this);
- }
- /// <summary>
- /// The on property changed handler.
- /// </summary>
- /// <param name="e">The event args.</param>
- protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs e)
- {
- base.OnPropertyChanged(e);
- if (e.Property.OwnerType == GetType() && Parent is IPlotView plot)
- {
- plot.InvalidatePlot();
- }
- }
- /// <summary>
- /// Synchronizes the properties.
- /// </summary>
- protected virtual void SynchronizeProperties()
- {
- var a = InternalAxis;
- a.AbsoluteMaximum = AbsoluteMaximum;
- a.AbsoluteMinimum = AbsoluteMinimum;
- a.Angle = Angle;
- a.AxisDistance = AxisDistance;
- a.AxislineColor = AxislineColor.ToOxyColor();
- a.AxislineStyle = AxislineStyle;
- a.AxislineThickness = AxislineThickness;
- a.AxisTitleDistance = AxisTitleDistance;
- a.AxisTickToLabelDistance = AxisTickToLabelDistance;
- a.ClipTitle = ClipTitle;
- a.EndPosition = EndPosition;
- a.ExtraGridlineColor = ExtraGridlineColor.ToOxyColor();
- a.ExtraGridlineStyle = ExtraGridlineStyle;
- a.ExtraGridlineThickness = ExtraGridlineThickness;
- a.ExtraGridlines = ExtraGridlines;
- a.FilterFunction = FilterFunction;
- a.FilterMaxValue = FilterMaxValue;
- a.FilterMinValue = FilterMinValue;
- a.Font = Font;
- a.FontSize = FontSize;
- a.FontWeight = (int)FontWeight;
- a.IntervalLength = IntervalLength;
- a.IsPanEnabled = IsPanEnabled;
- a.IsAxisVisible = IsAxisVisible;
- a.IsZoomEnabled = IsZoomEnabled;
- a.Key = Key;
- a.Layer = Layer;
- a.MajorGridlineColor = MajorGridlineColor.ToOxyColor();
- a.MinorGridlineColor = MinorGridlineColor.ToOxyColor();
- a.MajorGridlineStyle = MajorGridlineStyle;
- a.MinorGridlineStyle = MinorGridlineStyle;
- a.MajorGridlineThickness = MajorGridlineThickness;
- a.MinorGridlineThickness = MinorGridlineThickness;
- a.MajorStep = MajorStep;
- a.MajorTickSize = MajorTickSize;
- a.MinorStep = MinorStep;
- a.MinorTickSize = MinorTickSize;
- a.Minimum = Minimum;
- a.Maximum = Maximum;
- a.MinimumRange = MinimumRange;
- a.MaximumRange = MaximumRange;
- a.MinimumPadding = MinimumPadding;
- a.MaximumPadding = MaximumPadding;
- a.MinimumMargin = MinimumMargin;
- a.MaximumMargin = MinimumMargin;
- a.MinimumDataMargin = MinimumDataMargin;
- a.MaximumDataMargin = MaximumDataMargin;
- a.Position = Position;
- a.PositionTier = PositionTier;
- a.PositionAtZeroCrossing = PositionAtZeroCrossing;
- a.StartPosition = StartPosition;
- a.StringFormat = StringFormat;
- a.TextColor = TextColor.ToOxyColor();
- a.TicklineColor = TicklineColor.ToOxyColor();
- a.TitleClippingLength = TitleClippingLength;
- a.TitleColor = TitleColor.ToOxyColor();
- a.TitleFont = TitleFont;
- a.TitleFontSize = TitleFontSize;
- a.TitleFontWeight = (int)TitleFontWeight;
- a.TitleFormatString = TitleFormatString;
- a.Title = Title;
- a.ToolTip = (ToolTip.GetTip(this)?.ToString());
- a.TickStyle = TickStyle;
- a.TitlePosition = TitlePosition;
- a.Unit = Unit;
- a.UseSuperExponentialFormat = UseSuperExponentialFormat;
- a.LabelFormatter = LabelFormatter;
- a.EdgeRenderingMode = EdgeRenderingMode;
- }
- static Axis()
- {
- AbsoluteMaximumProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AbsoluteMinimumProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AngleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AxisTickToLabelDistanceProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AxisTitleDistanceProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AxisDistanceProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AxislineColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AxislineStyleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- AxislineThicknessProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- ClipTitleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- EndPositionProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- ExtraGridlineColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- ExtraGridlineStyleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- ExtraGridlineThicknessProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- ExtraGridlinesProperty.Changed.AddClassHandler<Axis>(DataChanged);
- FilterFunctionProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- FilterMaxValueProperty.Changed.AddClassHandler<Axis>(DataChanged);
- FilterMinValueProperty.Changed.AddClassHandler<Axis>(DataChanged);
- FontProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- FontSizeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- FontWeightProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- IntervalLengthProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- IsAxisVisibleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- KeyProperty.Changed.AddClassHandler<Axis>(DataChanged);
- LabelFormatterProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- LayerProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MajorGridlineColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MajorGridlineStyleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MajorGridlineThicknessProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MajorStepProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MajorTickSizeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MaximumPaddingProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MaximumMarginProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MaximumDataMarginProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MaximumProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MaximumRangeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinimumPaddingProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinimumMarginProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinimumDataMarginProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinimumProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinimumRangeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinorGridlineColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinorGridlineStyleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinorGridlineThicknessProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinorStepProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- MinorTickSizeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- PositionAtZeroCrossingProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- PositionProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- PositionTierProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- StartPositionProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- StringFormatProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TextColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TickStyleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TicklineColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleClippingLengthProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleColorProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleFontProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleFontSizeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleFontWeightProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleFormatStringProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitlePositionProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- TitleProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- UnitProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- UseSuperExponentialFormatProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- EdgeRenderingModeProperty.Changed.AddClassHandler<Axis>(AppearanceChanged);
- }
- }
- }
|