2.2 KiB
2.2 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T16:13:20.076259+00:00 | zai-org/GLM-5-FP8 | 1 | e25d08690ef1d9de |
Converters
Purpose
This module provides WPF value converters for the GroupChannelList UI component. It exists to transform data values into visual representations in XAML bindings, specifically converting boolean values to width measurements and background brush colors for sensor ID display elements.
Public Interface
-
BooleanToWidthConverterclass (public) - ImplementsIValueConverter. Converts boolean values to width values for UI element sizing.object Convert(object value, Type targetType, object parameter, CultureInfo culture)- Returnswidth(parsed from parameter) ifvalueistrue, returns0ifvalueisfalse, returns0ifvalueisnull. If parameter parsing fails, returnsdouble.NaN.object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)- ThrowsNotImplementedException.
-
SensorIdBackgroundConverterclass (public) - ImplementsIValueConverter. Converts boolean values to background brush colors.object Convert(object value, Type targetType, object parameter, CultureInfo culture)- Returns a light green brush (#FFE3FBE1) ifvalueistrue, returnsBrushes.Transparentifvalueisfalseornull. Catches and traces exceptions.object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)- ThrowsNotImplementedException.
Invariants
ConvertBackis not implemented on either converter; these are one-way converters only.SensorIdBackgroundConverter.SensorIdBrushis a static field that is frozen before return to make it thread-safe and non-modifiable.
Dependencies
- Depends on:
System.Windows.Data.IValueConverter,System.Windows.Media.SolidColorBrush,System.Windows.Media.Color,System.Windows.Media.Brushes,System.Globalization.CultureInfo,System.Diagnostics.Trace. - Depended on by: XAML views in the `GroupChannelList