InvertExtension Class |
Namespace: BionicCode.Utilities.Net.Core.Wpf.Markup
The InvertExtension type exposes the following members.
Name | Description | |
---|---|---|
InvertExtension |
Default constructor.
| |
InvertExtension(Object) |
Constructor.
|
Name | Description | |
---|---|---|
Mode |
The inversion mode.
| |
Value |
The Value to invert. Can everything that the provided ValueInverter can invert. The value can also be a BindingBase or any other MarkupExtension that can provide the invertible value.
| |
ValueInverter |
The implementation of IValueInverter.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValueToInvertFromMarkupExtension |
Extracts the value from a MarkupExtension.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProvideValue | When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension. (Overrides MarkupExtensionProvideValue(IServiceProvider).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ToDictionary | Overloaded.
Coverts any type to a DictionaryTKey, TValue, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) | |
ToDictionary | Overloaded.
Coverts any type to a DictionaryTKey, TValue, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) |
<TextBox Text="{Invert True}" /> // returns: False
<TextBox Text="{Invert 12}" /> // returns: -12
<TextBox Text="{Invert {x:Static Visibility.Hidden}}" /> // returns: Visibility.Visible
<TextBox Text="{Invert {Binding TextValue}}" />