'Declaration
Public NotInheritable Class C1RichTextViewManager
public sealed class C1RichTextViewManager
'Declaration
Public NotInheritable Class C1RichTextViewManager
public sealed class C1RichTextViewManager
C1RichTextViewManager must be used in conjunction with C1RichTextPresenter to display rich text. The C1RichTextViewManager.Presenters collection contains C1RichTextPresenterSources that connect the C1RichTextViewManager with the C1RichTextPresenters that actually displays the content.
The C1RichTextViewManager.Presenters collection always contains at least one element, and grows or shrinks when new presenters are needed. This makes it suitable to be used with an System.Windows.Controls.ItemsControl to create new presenters as needed. This is a sample of an ItemsControl displaying a C1RichTextViewManager.Document:
<Grid> <Grid.Resources> <c1rtb:C1RichTextViewManager x:Key="viewManager" Document="{StaticResource someDocument}"/> </Grid.Resources> <ItemsControl ItemsSource="{Binding Presenters, Source={StaticResource viewManager}}"> <ItemsControl.ItemTemplate> <DataTemplate> <Border Margin="10" BorderThickness="2" BorderBrush="Red" Padding="2" Height="102"> <c1rtb:C1RichTextPresenter Source="{Binding}"/> </Border> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid>
System.Object
C1.WPF.RichTextBox.C1RichTextViewManager