1
Answer

Use of in InlineUIContainer RichTextBlock?

Priya

Priya

10y
1.7k
1
I have used RichTextBlock for listing particular details. In this i want 'Line' after each paragraph of RichTextBlock. So I used <Line></Line> in InLineUIContiner.But its not working.Where i missed it. How can i achive this .Please help me.
 
   <Grid Grid.Row="1" Grid.Column="0" Background="AliceBlue" >

   <RichTextBlock VerticalAlignment="Top" x:Name="rtxtSample" Margin="0,0,20,0" HorizontalAlignment="Right">

   <Paragraph FontFamily="Arial" FontSize="18" TextAlignment="Right" Foreground="#666666" FontStyle="Italic" LineStackingStrategy="MaxHeight" LineHeight="4" >

   Address 1:

   <InlineUIContainer>

   <Line MaxWidth="10" Fill="Black" MaxHeight="20" FlowDirection="LeftToRight" Margin="0 0 0 0" Stretch="Fill"></Line>

   </InlineUIContainer>

   </Paragraph>

   <Paragraph FontFamily="Arial" FontSize="18" TextAlignment="Right" Foreground="#666666" FontStyle="Italic" LineStackingStrategy="MaxHeight" LineHeight="4" >
   Address 2 :

   <InlineUIContainer>

   <Line MaxWidth="10" Fill="Black" MaxHeight="20" FlowDirection="LeftToRight" Margin="0 0 0 0" Stretch="Fill"></Line>

   </InlineUIContainer>

   </Paragraph>

   </Grid>

I want like as below:
 
Address 1:
-------------------
Address 2:
-------------------
 
I used <Line></Line> in InLineUIContainer.But i didnot see any differences.
 
 
 
Answers (1)