The WPF.
[ValueConversion(typeof(System.Drawing.Color), typeof(System.Windows.Media.Color))]
public class ColorConverter : IValueConverter
Public Class ColorConverter
Implements IValueConverter
Introduced: 16.0.
Enter an introductory text for your TXText
?
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
?
<Window.Resources>
<tx:ColorConverter x:Key="colorConv" />
</Window.Resources>
?
<Rectangle
Width="20"
Height="20">
<Rectangle.Fill>
<SolidColorBrush
Color="{Binding
ElementName=textControl1,
Path=InputFormat.TextColor,
Converter={StaticResource colorConv}}" />
</Rectangle.Fill>
</Rectangle>
Method | Description |
---|---|
Convert | Converts a System. |
Convert |
Converts a System. |