// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) 2014 OxyPlot contributors // // // Represents a control that displays a . // // -------------------------------------------------------------------------------------------------------------------- using Avalonia; using Avalonia.Input; using Avalonia.Markup.Xaml.Templates; namespace OxyPlot.Avalonia { /// /// Represents a control that displays a . /// public partial class PlotBase { /// /// Identifies the dependency property. /// public static readonly StyledProperty DefaultTrackerTemplateProperty = AvaloniaProperty.Register(nameof(DefaultTrackerTemplate)); /// /// Identifies the dependency property. /// public static readonly StyledProperty IsMouseWheelEnabledProperty = AvaloniaProperty.Register(nameof(IsMouseWheelEnabled), true); /// /// Identifies the dependency property. /// public static readonly StyledProperty PanCursorProperty = AvaloniaProperty.Register(nameof(PanCursor), new Cursor(StandardCursorType.Hand)); /// /// Identifies the dependency property. /// public static readonly StyledProperty ZoomHorizontalCursorProperty = AvaloniaProperty.Register(nameof(ZoomHorizontalCursor), new Cursor(StandardCursorType.SizeWestEast)); /// /// Identifies the dependency property. /// public static readonly StyledProperty ZoomRectangleCursorProperty = AvaloniaProperty.Register(nameof(ZoomRectangleCursor), new Cursor(StandardCursorType.SizeAll)); /// /// Identifies the dependency property. /// public static readonly StyledProperty ZoomRectangleTemplateProperty = AvaloniaProperty.Register(nameof(ZoomRectangleTemplate)); /// /// Identifies the dependency property. /// public static readonly StyledProperty ZoomVerticalCursorProperty = AvaloniaProperty.Register(nameof(ZoomVerticalCursor), new Cursor(StandardCursorType.SizeNorthSouth)); static PlotBase() { } /// /// Gets or sets the default tracker template. /// public ControlTemplate DefaultTrackerTemplate { get { return GetValue(DefaultTrackerTemplateProperty); } set { SetValue(DefaultTrackerTemplateProperty, value); } } /// /// Gets or sets a value indicating whether IsMouseWheelEnabled. /// public bool IsMouseWheelEnabled { get { return GetValue(IsMouseWheelEnabledProperty); } set { SetValue(IsMouseWheelEnabledProperty, value); } } /// /// Gets or sets the pan cursor. /// /// The pan cursor. public Cursor PanCursor { get { return GetValue(PanCursorProperty); } set { SetValue(PanCursorProperty, value); } } /// /// Gets or sets the horizontal zoom cursor. /// /// The zoom horizontal cursor. public Cursor ZoomHorizontalCursor { get { return GetValue(ZoomHorizontalCursorProperty); } set { SetValue(ZoomHorizontalCursorProperty, value); } } /// /// Gets or sets the rectangle zoom cursor. /// /// The zoom rectangle cursor. public Cursor ZoomRectangleCursor { get { return GetValue(ZoomRectangleCursorProperty); } set { SetValue(ZoomRectangleCursorProperty, value); } } /// /// Gets or sets the zoom rectangle template. /// /// The zoom rectangle template. public ControlTemplate ZoomRectangleTemplate { get { return GetValue(ZoomRectangleTemplateProperty); } set { SetValue(ZoomRectangleTemplateProperty, value); } } /// /// Gets or sets the vertical zoom cursor. /// /// The zoom vertical cursor. public Cursor ZoomVerticalCursor { get { return GetValue(ZoomVerticalCursorProperty); } set { SetValue(ZoomVerticalCursorProperty, value); } } } }