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¶
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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [Crosshair_UI](# class, configuring crosshair display and marker behavior for the. specified plot with customizable appearance... |
Properties¶
| Name | Summary |
|---|---|
| Plot | Gets or sets the WpfPlot control used for rendering interactive plots within the application. |
| MouseCoordinatesObs | Gets or sets the subscription used to observe mouse coordinate changes. |
| PlotLine | Gets or sets the crosshair line to display on the plot, if any. |
| ChartSettings | |
| AutoScale | |
| ManualScale | |
| Mode | |
| NumberPointsPlotted | |
| UseFixedNumberOfPoints |
Methods¶
| Name | Summary |
|---|---|
| CreateCrosshair | Adds a draggable crosshair to the plot at the specified position and color. |
| Dispose | Releases unmanaged and - optionally - managed resources. |
Inherited members
CrissCross.RxObject.#ctorCrissCross.RxObject.DisposeCrissCross.RxObject.WhenNavigatedFrom(CrissCross.IViewModelNavigationEventArgs)CrissCross.RxObject.WhenNavigatedTo(CrissCross.IViewModelNavigationEventArgs,System.Reactive.Disposables.CompositeDisposable)CrissCross.RxObject.WhenNavigating(CrissCross.IViewModelNavigatingEventArgs)CrissCross.RxObject.Dispose(System.Boolean)CrissCross.RxObject.NameCrissCross.RxObject.DisplayNameCrissCross.RxObject.IsDisposedCrissCross.RxObject.DisposablesSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString