StringToVisibilityConverter Class

Summary

Converts a String into a Visibility enumeration (and back) The FalseEquivalent can be declared with the "FalseEquivalent" property
Namespace
MahApps.Metro.Converters
Interfaces
  • IValueConverter
Base Types
  • MarkupExtension
graph BT Type-->Base0["MarkupExtension"] Type-.->Interface0["IValueConverter"] Type["StringToVisibilityConverter"] class Type type-node

Syntax

[ValueConversion(typeof(string), typeof(Visibility))]
[MarkupExtensionReturnType(typeof(StringToVisibilityConverter))]
public class StringToVisibilityConverter : MarkupExtension, IValueConverter

Attributes

Type Description
ValueConversion
MarkupExtensionReturnType

Constructors

Name Summary
StringToVisibilityConverter() Initialize the properties with standard values

Properties

Name Value Summary
FalseEquivalent Visibility
FalseEquivalent (default : Visibility.Collapsed => see Constructor)
OppositeStringValue bool
Define whether the opposite boolean value is crucial (default : false)

Methods