Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.Converters.BoolToBrushConverter Class Reference

Converts between bool and given Brush instances. More...

Inheritance diagram for VolumeControl.WPF.Converters.BoolToBrushConverter:
Collaboration diagram for VolumeControl.WPF.Converters.BoolToBrushConverter:

Public Member Functions

object Convert (object value, Type targetType, object parameter, CultureInfo culture)
 
object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
 

Static Public Attributes

static readonly DependencyProperty WhenTrueProperty = DependencyProperty.Register(nameof(WhenTrue), typeof(Brush), typeof(BoolToBrushConverter), new PropertyMetadata(new SolidColorBrush()))
 The Brush returned when the value is true. More...
 
static readonly DependencyProperty WhenFalseProperty = DependencyProperty.Register(nameof(WhenFalse), typeof(Brush), typeof(BoolToBrushConverter), new PropertyMetadata(new SolidColorBrush()))
 The Brush returned when the value is false. More...
 
static readonly DependencyProperty WhenNullProperty = DependencyProperty.Register(nameof(WhenNull), typeof(Brush), typeof(BoolToBrushConverter), new PropertyMetadata(new SolidColorBrush()))
 The Brush returned when the value is null. More...
 

Properties

Brush WhenTrue [get, set]
 Gets or sets the Brush returned when the value is true. More...
 
Brush WhenFalse [get, set]
 Gets or sets the Brush returned when the value is false. More...
 
Brush WhenNull [get, set]
 Gets or sets the Brush returned when the value is null. More...
 

Detailed Description

Converts between bool and given Brush instances.

Member Data Documentation

◆ WhenFalseProperty

readonly DependencyProperty VolumeControl.WPF.Converters.BoolToBrushConverter.WhenFalseProperty = DependencyProperty.Register(nameof(WhenFalse), typeof(Brush), typeof(BoolToBrushConverter), new PropertyMetadata(new SolidColorBrush()))
static

The Brush returned when the value is false.

◆ WhenNullProperty

readonly DependencyProperty VolumeControl.WPF.Converters.BoolToBrushConverter.WhenNullProperty = DependencyProperty.Register(nameof(WhenNull), typeof(Brush), typeof(BoolToBrushConverter), new PropertyMetadata(new SolidColorBrush()))
static

The Brush returned when the value is null.

◆ WhenTrueProperty

readonly DependencyProperty VolumeControl.WPF.Converters.BoolToBrushConverter.WhenTrueProperty = DependencyProperty.Register(nameof(WhenTrue), typeof(Brush), typeof(BoolToBrushConverter), new PropertyMetadata(new SolidColorBrush()))
static

The Brush returned when the value is true.

Property Documentation

◆ WhenFalse

Brush VolumeControl.WPF.Converters.BoolToBrushConverter.WhenFalse
getset

Gets or sets the Brush returned when the value is false.

◆ WhenNull

Brush VolumeControl.WPF.Converters.BoolToBrushConverter.WhenNull
getset

Gets or sets the Brush returned when the value is null.

◆ WhenTrue

Brush VolumeControl.WPF.Converters.BoolToBrushConverter.WhenTrue
getset

Gets or sets the Brush returned when the value is true.


The documentation for this class was generated from the following file: