VisualElement.VisibilityConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 |
ConvertFrom(CultureInfo, Object) |
Obsolete.
When implemented in a derived class, converts an object that is a version of |
ConvertFrom(Object) |
Obsolete.
Calls ConvertFrom(CultureInfo, Object) with the current culture information and |
ConvertFromInvariantString(String) |
Returns the object for the string representation. |