Coordinates the layout and painting of a C1Document.

Namespace:  C1.Phone.RichTextBox
Assembly:  C1.Phone.RichTextBox (in C1.Phone.RichTextBox.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

C#
public sealed class C1RichTextViewManager : IDisposable
Visual Basic
Public NotInheritable Class C1RichTextViewManager _
	Implements IDisposable
XAML Object Element Usage
<C1RichTextViewManager .../>

Remarks

C1RichTextViewManager must be used in conjunction with C1RichTextPresenter to display rich text. The Presenters collection contains C1RichTextPresenterSources that connect the C1RichTextViewManager with the C1RichTextPresenters that actually displays the content.

The 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 ItemsControl to create new presenters as needed. This is a sample of an ItemsControl displaying a Document:

Copy CodeC#
<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>

Inheritance Hierarchy

System..::..Object
  C1.Phone.RichTextBox..::..C1RichTextViewManager

See Also