Class VisualizationSettingsFlyout
Unified settings flyout for all visualization types.
Common: Autoscale toggle + optional fixed min/max inputs.
Scope: Additionally shows channel offset control (auto/manual).
Heatmap: Additionally shows scaler mode selector + colormap picker.
Created by each *View class and attached to a gear button.
Inheritance
VisualizationSettingsFlyout
Assembly: MOSAIC.dll
Syntax
public sealed class VisualizationSettingsFlyout
Constructors
VisualizationSettingsFlyout(SettingsTarget)
Declaration
public VisualizationSettingsFlyout(SettingsTarget target)
Parameters
Fields
_applyBtn
Declaration
private readonly Button _applyBtn
Field Value
_applyGridBtn
Declaration
private readonly Button? _applyGridBtn
Field Value
_autoToggle
Declaration
private readonly ToggleButton _autoToggle
Field Value
| Type |
Description |
| ToggleButton |
|
_colormapPanel
Declaration
private readonly WrapPanel? _colormapPanel
Field Value
| Type |
Description |
| WrapPanel |
|
Declaration
private readonly TextBox? _colsInput
Field Value
_fixedPanel
Declaration
private readonly StackPanel _fixedPanel
Field Value
| Type |
Description |
| StackPanel |
|
_heatmap
Declaration
private HeatMapMonitor? _heatmap
Field Value
_heatmapSection
Declaration
private readonly StackPanel? _heatmapSection
Field Value
| Type |
Description |
| StackPanel |
|
Declaration
private readonly TextBox _maxInput
Field Value
Declaration
private readonly TextBox _minInput
Field Value
_offsetApplyBtn
Declaration
private readonly Button? _offsetApplyBtn
Field Value
_offsetAutoToggle
Declaration
private readonly ToggleButton? _offsetAutoToggle
Field Value
| Type |
Description |
| ToggleButton |
|
Declaration
private readonly TextBox? _offsetInput
Field Value
_offsetManualPanel
Declaration
private readonly StackPanel? _offsetManualPanel
Field Value
| Type |
Description |
| StackPanel |
|
_root
Declaration
private readonly StackPanel _root
Field Value
| Type |
Description |
| StackPanel |
|
Declaration
private readonly TextBox? _rowsInput
Field Value
_scalerCombo
Declaration
private readonly ComboBox? _scalerCombo
Field Value
| Type |
Description |
| ComboBox |
|
_scope
Declaration
private ScopeMonitor? _scope
Field Value
_snapshot
Declaration
private SnapshotMonitor? _snapshot
Field Value
_spider
Declaration
private SpiderMonitor? _spider
Field Value
_statusLabel
Declaration
private readonly TextBlock _statusLabel
Field Value
| Type |
Description |
| TextBlock |
|
_target
Declaration
private readonly SettingsTarget _target
Field Value
Properties
Content
Declaration
public Control Content { get; }
Property Value
Methods
Declaration
private void AddColormapButton(string label, bool isDark, Action<HeatMapMonitor> apply)
Parameters
ApplyHeatmapRange(double, double)
Declaration
private void ApplyHeatmapRange(double min, double max)
Parameters
CreateFlyout()
Declaration
public Flyout CreateFlyout()
Returns
Helper to create a standard gear button with this flyout attached.
Declaration
public static Button CreateGearButton(VisualizationSettingsFlyout flyout)
Parameters
Returns
GetTitle()
Declaration
private string GetTitle()
Returns
MakeLabel(string, bool)
Declaration
private static TextBlock MakeLabel(string text, bool isDark)
Parameters
Returns
| Type |
Description |
| TextBlock |
|
MakeSeparator(bool)
Declaration
private static Border MakeSeparator(bool isDark)
Parameters
| Type |
Name |
Description |
| bool |
isDark |
|
Returns
MakeTextBox(string, string, bool)
Declaration
private static TextBox MakeTextBox(string watermark, string text, bool isDark)
Parameters
Returns
OnApplyGrid(object?, RoutedEventArgs)
Declaration
private void OnApplyGrid(object? sender, RoutedEventArgs e)
Parameters
| Type |
Name |
Description |
| object |
sender |
|
| RoutedEventArgs |
e |
|
OnApplyOffset(object?, RoutedEventArgs)
Declaration
private void OnApplyOffset(object? sender, RoutedEventArgs e)
Parameters
| Type |
Name |
Description |
| object |
sender |
|
| RoutedEventArgs |
e |
|
OnApplyRange(object?, RoutedEventArgs)
Declaration
private void OnApplyRange(object? sender, RoutedEventArgs e)
Parameters
| Type |
Name |
Description |
| object |
sender |
|
| RoutedEventArgs |
e |
|
OnAutoToggleClick(object?, RoutedEventArgs)
Declaration
private void OnAutoToggleClick(object? sender, RoutedEventArgs e)
Parameters
| Type |
Name |
Description |
| object |
sender |
|
| RoutedEventArgs |
e |
|
OnOffsetAutoToggleClick(object?, RoutedEventArgs)
Declaration
private void OnOffsetAutoToggleClick(object? sender, RoutedEventArgs e)
Parameters
| Type |
Name |
Description |
| object |
sender |
|
| RoutedEventArgs |
e |
|
OnScalerChanged(object?, SelectionChangedEventArgs)
Declaration
private void OnScalerChanged(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 Parameters
SetHeatmap(HeatMapMonitor?)
Declaration
public void SetHeatmap(HeatMapMonitor? heatmap)
Parameters
SetScope(ScopeMonitor?)
Declaration
public void SetScope(ScopeMonitor? scope)
Parameters
SetSnapshot(SnapshotMonitor?)
Declaration
public void SetSnapshot(SnapshotMonitor? snapshot)
Parameters
SetSpider(SpiderMonitor?)
Declaration
public void SetSpider(SpiderMonitor? spider)
Parameters
SetStatus(string)
Declaration
private void SetStatus(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Declaration
private void SyncGridInputs()
SyncOffsetControls()
Syncs the offset controls to the current scope state.
Called when a new scope is attached via SetScope(ScopeMonitor?).
Declaration
private void SyncOffsetControls()
SyncToggle()
Declaration
private void SyncToggle()
TryParseRange(out double, out double)
Declaration
private bool TryParseRange(out double min, out double max)
Parameters
Returns