BoolToObjectConverter Class

Definition

This class converts a boolean value into an other object. Can be used to convert true/false to visibility, a couple of colors, couple of images, etc.

public class BoolToObjectConverter : Windows.UI.Xaml.DependencyObject, Windows.UI.Xaml.Data.IValueConverter
type BoolToObjectConverter = class
    inherit DependencyObject
    interface IValueConverter
Public Class BoolToObjectConverter
Inherits DependencyObject
Implements IValueConverter
Inheritance
Windows.UI.Xaml.DependencyObject
BoolToObjectConverter
Derived
Implements
Windows.UI.Xaml.Data.IValueConverter

Constructors

BoolToObjectConverter()

Fields

FalseValueProperty

Identifies the FalseValue property.

TrueValueProperty

Identifies the TrueValue property.

Properties

FalseValue

Gets or sets the value to be returned when the boolean is false

TrueValue

Gets or sets the value to be returned when the boolean is true

Methods

Convert(Object, Type, Object, String)

Convert a boolean value to an other object.

ConvertBack(Object, Type, Object, String)

Convert back the value to a boolean

Applies to