Represents a contextual formatting toolbar that mimics the behavior of the Microsoft Office 2010 formatting bar.
The following example adds the RichTextBoxFormatBar to the toolkit's RichTextBox.
<xctk:RichTextBox>
<xctk:RichTextBoxFormatBarManager.FormatBar>
<xctk:RichTextBoxFormatBar />
</xctk:RichTextBoxFormatBarManager.FormatBar>
</xctk:RichTextBox>
The following snippet addsthe RichTextBoxFormatBar to the default Windows RichTextBox.
<RichTextBox>
<xctk:RichTextBoxFormatBarManager.FormatBar>
<xctk:RichTextBoxFormatBar />
</xctk:RichTextBoxFormatBarManager.FormatBar>
</RichTextBox>
You create your own custom format bar by creating a custom/user control that implements the IRichTextBoxFormatBar interface and setting the RichTextBoxFormatBarManager.FormatBar attached property to your new custom format bar instance.
<RichTextBox>
<xctk:RichTextBoxFormatBarManager.FormatBar>
<local:MyCustomFormatBar />
</xctk:RichTextBoxFormatBarManager.FormatBar>
</RichTextBox>
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2