Editar

Compartir a través de


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 : Microsoft.UI.Xaml.DependencyObject, Microsoft.UI.Xaml.Data.IValueConverter
type BoolToObjectConverter = class
    inherit DependencyObject
    interface IValueConverter
Public Class BoolToObjectConverter
Inherits DependencyObject
Implements IValueConverter
Inheritance
Microsoft.UI.Xaml.DependencyObject
BoolToObjectConverter
Derived
Implements
Microsoft.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