Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 1.57 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to draw Table with graph lines in the FlowDocument?
  2. <FlowDocument PageWidth="600" MinPageWidth="600" PagePadding="0,0,0,0">
  3.   <Section>
  4.     <Paragraph>
  5.       <Grid ShowGridLines="False" Background="#FFFFFFFF" Margin="0,5,0,0">
  6.         <Grid.ColumnDefinitions>
  7.           <ColumnDefinition Width="140"/>
  8.           <ColumnDefinition Width="460"/>
  9.         </Grid.ColumnDefinitions>
  10.         <Grid.RowDefinitions>
  11.           <RowDefinition Height="20"/>
  12.           <RowDefinition Height="20"/>
  13.         </Grid.RowDefinitions>
  14.         <Canvas Background="#FFFFFFFF" Name="Canvas0" Width="460" Height="40" Grid.Column="1" Grid.Row="1">
  15.           <Rectangle Fill="#FFD3D3D3" Width="140" Height="40" Canvas.Left="160" Canvas.Top="0"/>
  16.           <Rectangle Fill="#FFA9A9A9" Width="91" Height="40" Canvas.Left="188" Canvas.Top="0"/>
  17.           <Ellipse Fill="#FF3E00C1" Width="7" Height="7" Canvas.Left="282.978417266187" Canvas.Top="6.5"/>
  18.           <Ellipse Fill="#FF1D00E2" Width="7" Height="7" Canvas.Left="199.508" Canvas.Top="26.5"/>
  19.           <Line X1="286.478417266187" Y1="10" X2="203.008" Y2="30" StrokeThickness="2">
  20.             <Line.Stroke>
  21.               <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
  22.                 <LinearGradientBrush.GradientStops>
  23.                   <GradientStop Color="#FF1D00E2" Offset="0"/>
  24.                   <GradientStop Color="#FF3E00C1" Offset="1"/>
  25.                 </LinearGradientBrush.GradientStops>
  26.               </LinearGradientBrush>
  27.             </Line.Stroke>
  28.           </Line>
  29.         </Canvas>
  30.       </Grid>
  31.     </Paragraph>
  32.   </Section>
  33. </FlowDocument>