The class WPF.
[ValueConversion(typeof(double), typeof(double))]
[ValueConversion(typeof(double), typeof(int))]
[ValueConversion(typeof(int), typeof(double))]
[ValueConversion(typeof(int), typeof(int))]
public class LogarithmicConverter : IValueConverter
Public Class LogarithmicConverter
Implements IValueConverter
Introduced: 16.0.
The following XAML example shows how to bind the Text
?
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
?
<Window.Resources>
<tx:LogarithmicConverter
x:Key="logConv"
InputMinimum="10"
InputCenter="100"
InputMaximum="400"
OutputMinimum="0"
OutputMaximum="100" />
</Window.Resources>
?
<Slider
Minimum="0"
Maximum="100"
Value="{Binding ElementName=textControl1, Path=ZoomFactor, Converter={StaticResource logConv}}" />
Method | Description |
---|---|
Convert | Converts an integer or a double precision floating point value to an integer or a double precision floating point value. |
Convert |
Converts an integer or a double precision floating point value to an integer or a double precision floating point value. |
Property | Description |
---|---|
Input |
Sets or gets the numeric value of the source value range which will be mapped to the center of the target value range. |
Input |
Sets or gets the upper bound of the source value range. |
Input |
Sets or gets the lower bound of the source value range. |
Output |
Sets or gets the upper bound of the target value range. |
Output |
Sets or gets the lower bound of the target value range. |