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

Commented Issue: Richtextbox language problem [19385]

$
0
0
Hello support,

I have a problem with the richtextbox-control and the language.
Maybe you can help me.

If I doesn't change the text the spellchecking is working, when I change the language. If I wirte after the text new text or I mark all text und write then new text. The language is not set properly for the text and the spellchecking doesn't work.

Greetings Gregor Glinka

Here's my XAML-Code:
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>

<ComboBox Name="lg" Grid.Row="0">
<ComboBoxItem Selector.IsSelected="True">en-US</ComboBoxItem>
<ComboBoxItem>fr-FR</ComboBoxItem>
<ComboBoxItem>es-ES</ComboBoxItem>
<ComboBoxItem>de-DE</ComboBoxItem>
</ComboBox>

<TextBox Grid.Row="1" SpellCheck.IsEnabled="True"
Language="{Binding SelectedItem.Content, ElementName=lg, ConverterCulture=en-us}">
Hund dog perro chien
</TextBox>

<extToolkit:RichTextBox Grid.Row="2" SpellCheck.IsEnabled="True" Language="{Binding SelectedItem.Content, ElementName=lg, ConverterCulture=en-us}">
<extToolkit:RichTextBox.Text>Hund dog perro chien</extToolkit:RichTextBox.Text>
</extToolkit:RichTextBox>
</Grid>
Comments: ** Comment from web user: BoucherS **

Hi, you could try to use your own RichTextBox, deriving from Xceed.Wpf.Toolkit.RichTextBox and override the "OnTextChanged()" method.

In the override, simply do what is done on this page :
http://stackoverflow.com/questions/18982057/spell-checking-doesnt-work-with-wpf-richtextbox

Hope this helps !


Viewing all articles
Browse latest Browse all 4964

Trending Articles



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