Skip to content

Crosshair_UI class

Attributes: [SupportedOSPlatform("windows")]

Defined in

Namespace: CrissCross.WPF.Plot Assembly: CrissCross.WPF.Plot.dll Full name: CrissCross.WPF.Plot.Crosshair_UI Modifiers: public

Summary

View source

        Provides a user interface component for displaying and interacting with a crosshair overlay on a plot, supporting
        features such as autoscaling, manual scaling, and dynamic coordinate tracking.
        

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Class hierarchy
classDiagram
class Crosshair_UI
class RxObject
RxObject <|-- Crosshair_UI
class IPlottableUI {
    <>
}
IPlottableUI <|.. Crosshair_UI
class IDisposable {
    <>
}
IDisposable <|.. Crosshair_UI

Inherits from: RxObject

Implements: IPlottableUI, IDisposable

Remarks

This class is intended for use with Windows platforms and integrates with WpfPlot to visualize crosshair markers and coordinate information. It supports both numeric and date/time axes, and can subscribe to coordinate updates for interactive crosshair movement. Thread safety is not guaranteed; ensure that interactions with UI elements occur on the appropriate thread.

Constructors

NameSummary
.ctorInitializes a new instance of the [Crosshair_UI](# class, configuring crosshair display and marker behavior for the. specified plot with customizable appearance...

Properties

NameSummary
PlotGets or sets the WpfPlot control used for rendering interactive plots within the application.
MouseCoordinatesObsGets or sets the subscription used to observe mouse coordinate changes.
PlotLineGets or sets the crosshair line to display on the plot, if any.
ChartSettings
AutoScale
ManualScale
Mode
NumberPointsPlotted
UseFixedNumberOfPoints

Methods

NameSummary
CreateCrosshairAdds a draggable crosshair to the plot at the specified position and color.
DisposeReleases unmanaged and - optionally - managed resources.
Inherited members