RichTextBox for WinRT
C1RichTextViewManager Class
Members 


Coordinates the layout and painting of a C1.Xaml.RichTextBox.Documents.C1Document.
Object Model
C1RichTextViewManager Class
Syntax
'Declaration
 
Public NotInheritable Class C1RichTextViewManager 
'Usage
 
Dim instance As C1RichTextViewManager
public sealed class 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 Windows.UI.Xaml.Controls.ItemsControl to create new presenters as needed. This is a sample of an ItemsControl displaying a 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>
Inheritance Hierarchy

System.Object
   C1.Xaml.RichTextBox.C1RichTextViewManager

Requirements

Target Platforms: 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

See Also

Reference

C1RichTextViewManager Members
C1.Xaml.RichTextBox Namespace

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback