Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. How do I draw a line in a flow document?

How do I draw a line in a flow document?

Scheduled Pinned Locked Moved WCF and WF
questionvisual-studio
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RugbyLeague
    wrote on last edited by
    #1

    I want a line to sretch across the page in a flow document - i tried using a UIElement with a rectangle inside but it just crashes my VS 2008.

    J 1 Reply Last reply
    0
    • R RugbyLeague

      I want a line to sretch across the page in a flow document - i tried using a UIElement with a rectangle inside but it just crashes my VS 2008.

      J Offline
      J Offline
      Jurgen Rohr
      wrote on last edited by
      #2

      Hi, try this

      <FlowDocument>
      <Paragraph>
      <Run
      Text="lorem ipsum dolor" /> "
      </Paragraph>
      <BlockUIContainer>
      <Rectangle
      Fill="Black"
      Height="1" />
      </BlockUIContainer>
      <Paragraph>
      <Run
      Text="lorem ipsum dolor" /> "
      </Paragraph>
      </FlowDocument>

      or the respective code. The "BlockUIContainer" should get you, where you want to. Cheers Jürgen

      R 1 Reply Last reply
      0
      • J Jurgen Rohr

        Hi, try this

        <FlowDocument>
        <Paragraph>
        <Run
        Text="lorem ipsum dolor" /> "
        </Paragraph>
        <BlockUIContainer>
        <Rectangle
        Fill="Black"
        Height="1" />
        </BlockUIContainer>
        <Paragraph>
        <Run
        Text="lorem ipsum dolor" /> "
        </Paragraph>
        </FlowDocument>

        or the respective code. The "BlockUIContainer" should get you, where you want to. Cheers Jürgen

        R Offline
        R Offline
        RugbyLeague
        wrote on last edited by
        #3

        Excellent, thank you

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups