Skip to content

ChartObjects.AppearanceSubsriptions(WpfPlot, T) method

Defined in

Type: ChartObjects Namespace: CrissCross.WPF.Plot Assembly: CrissCross.WPF.Plot.dll

Applies to

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

Overloads

  • 1. public void AppearanceSubsriptions<T>(WpfPlot wpfPlot, T plotable) where T : IHasLine, IHasMarker, IPlottable
  • 2. public void AppearanceSubsriptions(WpfPlot wpfPlot)

1. Overload

public void AppearanceSubsriptions<T>(WpfPlot wpfPlot, T plotable) where T : IHasLine, IHasMarker, IPlottable

View source

Summary: Synchronizes the appearance and visibility properties of the specified plotable object with the current view model state and updates the provided WpfPlot accordingly.

Type parameters

NameDescription
TThe type of the plotable object to synchronize. Must implement IHasLine, IHasMarker, and ScottPlot.IPlottable.

Parameters

NameTypeDescription
wpfPlotWpfPlotThe WpfPlot instance to refresh when appearance or visibility changes occur.
plotableTThe plotable object whose line, marker, and visibility properties will be updated in response to view model changes.

Remarks

This method establishes reactive subscriptions that automatically update the plotable object's appearance and visibility based on changes to the view model's properties. The WpfPlot is refreshed whenever relevant properties change to ensure the display remains current. The method disposes subscriptions with the view model's disposables to manage resources effectively.

2. Overload

public void AppearanceSubsriptions(WpfPlot wpfPlot)

View source

Summary: Subscribes to property changes related to appearance and updates the specified plot control accordingly.

Parameters

NameTypeDescription
wpfPlotWpfPlotThe plot control to refresh when appearance-related properties change.

Remarks

This method establishes reactive subscriptions to properties such as line width, color, visibility, and crosshair state. When these properties change, the plot control is refreshed to reflect the updated appearance. This ensures that UI elements remain synchronized with the underlying data model.