BooleanToVisibilityConverter BooleanToVisibilityConverter BooleanToVisibilityConverter BooleanToVisibilityConverter Class

Definición

Representa el convertidor que convierte valores booleanos en valores de la enumeración Visibility, y viceversa.Represents the converter that converts Boolean values to and from Visibility enumeration values.

public ref class BooleanToVisibilityConverter sealed : System::Windows::Data::IValueConverter
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]
public sealed class BooleanToVisibilityConverter : System.Windows.Data.IValueConverter
type BooleanToVisibilityConverter = class
    interface IValueConverter
Public NotInheritable Class BooleanToVisibilityConverter
Implements IValueConverter
Herencia
BooleanToVisibilityConverterBooleanToVisibilityConverterBooleanToVisibilityConverterBooleanToVisibilityConverter
Atributos
Implementaciones

Comentarios

Use la BooleanToVisibilityConverter clase para convertir un valor booleano a y desde un Visibility valor.Use the BooleanToVisibilityConverter class to convert a Boolean to and from a Visibility value. El Convert devuelve del método Visibility.Visible cuando true se pasa o Visibility.Collapsed cuando false se pasa.The Convert method returns Visibility.Visible when true is passed in or Visibility.Collapsed when false is passed in. Tenga en cuenta que el Visibility.Collapsed oculta el control de valor y no reservar espacio para él en un diseño.Note that the Visibility.Collapsed value hides the control and does not reserve space for it in a layout. Cuando se llama a la ConvertBack método y especificar una referencia a un objeto, devuelve true si el objeto es Visible; en caso contrario, devuelve false.When you call the ConvertBack method and specify a reference to an object, it returns true if the object is Visible; otherwise, it returns false.

Constructores

BooleanToVisibilityConverter() BooleanToVisibilityConverter() BooleanToVisibilityConverter() BooleanToVisibilityConverter()

Inicializa una nueva instancia de la clase BooleanToVisibilityConverter.Initializes a new instance of the BooleanToVisibilityConverter class.

Métodos

Convert(Object, Type, Object, CultureInfo) Convert(Object, Type, Object, CultureInfo) Convert(Object, Type, Object, CultureInfo) Convert(Object, Type, Object, CultureInfo)

Convierte un valor booleano en un valor de la enumeración Visibility.Converts a Boolean value to a Visibility enumeration value.

ConvertBack(Object, Type, Object, CultureInfo) ConvertBack(Object, Type, Object, CultureInfo) ConvertBack(Object, Type, Object, CultureInfo) ConvertBack(Object, Type, Object, CultureInfo)

Convierte un valor de la enumeración Visibility en un valor booleano.Converts a Visibility enumeration value to a Boolean value.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a