Description
ArticleView.Resources control displays article elements in the ArticleView control.
Namespace
xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation"
Members
DataTemplate and other standard properties
Example
A detail:
<DataTemplate x:Key="txt">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal" Background="LightGray">
<TextBlock FontWeight="Bold" Text="{Binding Path=ObjectType.Name}" Margin="2,2,2,2"/>
<TextBlock Margin="4,2,2,2">
<TextBlock.Text>
<Binding Path="[txt.nWords]" StringFormat="Word Count: {0}"/>
</TextBlock.Text>
</TextBlock>
</StackPanel>
<l:FlowDocumentPreviewControl
l:Highlights.IsHighlightTarget="True"
VerticalScrollBarVisibility="Disabled"
IsSliderVisible="False"
ObjectId="{Binding Path=DataContext[article.id], RelativeSource={RelativeSource AncestorType={x:Type l:ArticleView}}}"
TxtXml="{Binding Path=[txt.tText]}"/>
</StackPanel>
</DataTemplate>
See also