Class HeatmapSettingsFlyout

Self-contained flyout content for heatmap settings (scaling mode + colormap). Created by VisualizationPanel and attached to a gear button next to the heatmap toggle.

Inheritance
HeatmapSettingsFlyout
Namespace: MOSAIC.Visualization.Heatmap
Assembly: MOSAIC.dll
Syntax
public sealed class HeatmapSettingsFlyout

Constructors

HeatmapSettingsFlyout()

Declaration
public HeatmapSettingsFlyout()

Fields

_applyRangeBtn

Declaration
private readonly Button _applyRangeBtn
Field Value
Type Description
Button

_colormapPanel

Declaration
private readonly WrapPanel _colormapPanel
Field Value
Type Description
WrapPanel

_currentMode

Declaration
private HeatmapScalingMode _currentMode
Field Value
Type Description
HeatmapScalingMode

_fixedRangePanel

Declaration
private readonly StackPanel _fixedRangePanel
Field Value
Type Description
StackPanel

_heatmap

Declaration
private HeatMapMonitor? _heatmap
Field Value
Type Description
HeatMapMonitor

_maxInput

Declaration
private readonly TextBox _maxInput
Field Value
Type Description
TextBox

_minInput

Declaration
private readonly TextBox _minInput
Field Value
Type Description
TextBox

_modeCombo

Declaration
private readonly ComboBox _modeCombo
Field Value
Type Description
ComboBox

_root

Declaration
private readonly StackPanel _root
Field Value
Type Description
StackPanel

_statusLabel

Declaration
private readonly TextBlock _statusLabel
Field Value
Type Description
TextBlock

Properties

Content

Declaration
public Control Content { get; }
Property Value
Type Description
Control

Methods

AddColormapButton(string, bool, Action<HeatMapMonitor>)

Declaration
private void AddColormapButton(string label, bool isDark, Action<HeatMapMonitor> apply)
Parameters
Type Name Description
string label
bool isDark
Action<HeatMapMonitor> apply

CreateFlyout(bool)

Creates the Flyout to attach to the gear button.

Declaration
public Flyout CreateFlyout(bool isDark)
Parameters
Type Name Description
bool isDark
Returns
Type Description
Flyout

MakeLabel(string, bool)

Declaration
private static TextBlock MakeLabel(string text, bool isDark)
Parameters
Type Name Description
string text
bool isDark
Returns
Type Description
TextBlock

MakeTextBox(string, string, bool)

Declaration
private static TextBox MakeTextBox(string watermark, string defaultText, bool isDark)
Parameters
Type Name Description
string watermark
string defaultText
bool isDark
Returns
Type Description
TextBox

OnApplyRange(object?, RoutedEventArgs)

Declaration
private void OnApplyRange(object? sender, RoutedEventArgs e)
Parameters
Type Name Description
object sender
RoutedEventArgs e

OnModeChanged(object?, SelectionChangedEventArgs)

Declaration
private void OnModeChanged(object? sender, SelectionChangedEventArgs e)
Parameters
Type Name Description
object sender
SelectionChangedEventArgs e

SetCol<T>(T, int)

Declaration
private static T SetCol<T>(T control, int col) where T : Control
Parameters
Type Name Description
T control
int col
Returns
Type Description
T
Type Parameters
Name Description
T

SetHeatmap(HeatMapMonitor?)

Binds this flyout to a HeatMap instance. Call when the heatmap property changes.

Declaration
public void SetHeatmap(HeatMapMonitor? heatmap)
Parameters
Type Name Description
HeatMapMonitor heatmap

SetStatus(string)

Declaration
private void SetStatus(string text)
Parameters
Type Name Description
string text

UpdateStatus()

Declaration
private void UpdateStatus()

Search documentation

Start typing to search the documentation.