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

Commented Unassigned: IncreaseIndentation and DecreaseIndentation not available for RichTextBox [22318]

$
0
0
Hello,

It looks like both commands are disabled for RichTextBox, they work in the base Microsoft version.

sample code:

<ToolBar Name="RteToolBar"
DockPanel.Dock="Top"
ToolBarTray.IsLocked="True"
Height="30"
Width="Auto"
Grid.Row="1">
<Button Content="Increses"
CommandTarget="{Binding ElementName=_richTextBox}"
Command="EditingCommands.IncreaseIndentation" />
<Button Content="Decreses"
CommandTarget="{Binding ElementName=_richTextBox}"
Command="EditingCommands.DecreaseIndentation" />
<Button Content="bla"
CommandTarget="{Binding ElementName=_richTextBox}"
Command="EditingCommands.ToggleBold" />

</ToolBar>
<xctk:RichTextBox x:Name="_richTextBox"
Grid.Row="2"
Margin="10"
BorderBrush="Gray"
Padding="10"
Text="{Binding Notes}"
ScrollViewer.VerticalScrollBarVisibility="Auto">

<RichTextBox.CommandBindings>
<CommandBinding Command="EditingCommands.IncreaseIndentation" />
<CommandBinding Command="EditingCommands.DecreaseIndentation" />
<CommandBinding Command="EditingCommands.ToggleBold" />
</RichTextBox.CommandBindings>
</xctk:RichTextBox>
Comments: ** Comment from web user: BoucherS **

Hi,

As the Microsoft RichTextBox, make sure to set AcceptsTab to True on the RichTextBox in order for the Tabs to be activated.


Viewing all articles
Browse latest Browse all 4964

Trending Articles