28.8. Building the Documents Tab
Click on the Documents tab of your TabItem and use the Blend editor to open this control for editing. You should already have a default <Grid> control as the direct child of the TabItem control; however, change it to a StackPanel here using the Objects and Timeline window. This tab will display a FlowDocument that allows the user to highlight selected text, as well as add annotations using the Sticky Notes API.
Begin by defining the following ToolBar control, which has three simple (and unnamed!) Button controls. You will be rigging up a few new commands to these controls later on, so you do not need to refer to them in code:
<TabItem x:Name="tabDocuments" Header="Documents" VerticalAlignment="Bottom" Height="20"> ...
Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.