StateToBooleanConverter 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.
This converter can be used with StateLayout to determine if a certain state is visible. This can be useful, for instance, in scenarios where you want to show/hide certain elements based on the current StateLayout.CurrentState. Additionally a StateLayout can be supplied in the parameter of the Convert method to compare against that.
public class StateToBooleanConverter : Xamarin.Forms.IValueConverter
- Inheritance
-
System.ObjectStateToBooleanConverter
- Implements
Constructors
StateToBooleanConverter() |
Properties
StateToCompare |
The LayoutState to compare to. |
Methods
Convert(Object, Type, Object, CultureInfo) |
Takes the incoming StateLayout in |
ConvertBack(Object, Type, Object, CultureInfo) |
This method is not implemented and will throw a System.NotImplementedException. |