Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Edited Issue: Transparent Background in RichTextBox [20547]

$
0
0
When setting Colors.Transparent as FontBackgroundColor the Background changes to Colors.White.
So instead of setting Color.Transparent in ApplyPropertyValueToSelectedText the background should be cleared.

My current workaround in RichTextBoxFormatBar looks like this

```
void ApplyPropertyValueToSelectedText(DependencyProperty formattingProperty, object value)
{
if ((value == null) || (Target == null) || (Target.Selection == null))
return;
if (value is SolidColorBrush && (value as SolidColorBrush).Color == Colors.Transparent)
{
Target.Selection.ApplyPropertyValue(formattingProperty, null);
}
else
{
Target.Selection.ApplyPropertyValue(formattingProperty, value);
}
}
```
Comments: ** Comment from web user: BoucherS **

This issue will be fixed in v2.3


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>