VisualElement.VisibilityConverter Class

Definition

Converts a string representation of a visual element visibility to a Boolean that represents the visibility of the element.

public class VisualElement.VisibilityConverter : Xamarin.Forms.TypeConverter
type VisualElement.VisibilityConverter = class
    inherit TypeConverter
Inheritance
VisualElement.VisibilityConverter

Remarks

This converter recognizes and converts string representations of the the following strings, regardless of case: "true", "visible", "false", "hidden" and "collapse".

"true" and "visible" are converted to true. The remaining valid strings are converted to false.

Constructors

VisualElement.VisibilityConverter()

Creates a new default converter.

Methods

CanConvertFrom(Type)

When implemented in a derived class, returns a Boolean value that indicates whether or not the derived type converter can convert sourceType to its target type.

(Inherited from TypeConverter)
ConvertFrom(CultureInfo, Object)
Obsolete.

When implemented in a derived class, converts an object that is a version of value and that can be cast to the target type.

(Inherited from TypeConverter)
ConvertFrom(Object)
Obsolete.

Calls ConvertFrom(CultureInfo, Object) with the current culture information and o.

(Inherited from TypeConverter)
ConvertFromInvariantString(String)

Returns the object for the string representation.

Applies to