I am trying to customize the style of a RadRichTextBox. Previously with the standard RichTextBox you could target Textbox base and do a datatrigger to bind to IsKeyboard focused in XAML to change the background if the user had clicked inside the richtextbox to insert or type.
Does the RadRichTextBox have something similar? How can I check to see if it is selected?
Does the RadRichTextBox have something similar? How can I check to see if it is selected?
Hi Patrick,
Here is an example style for this:
<Style TargetType="telerik:RadRichTextBox" BasedOn="{StaticResource RadRichTextBoxStyle}"> <Style.Triggers> <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource Self}}" Value="True"> <Setter Property="Background" Value="blue"/> </DataTrigger> </Style.Triggers> </Style>