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
  1. Home
  2. General Programming
  3. WPF
  4. Shapes in Rich text box

Shapes in Rich text box

Scheduled Pinned Locked Moved WPF
question
4 Posts 2 Posters 1 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
    r i s h a b h s
    wrote on last edited by
    #1

    Hi All, I am developing a WYSIWYG editor using Silverlight 4.0 RichText box. I am able to insert images in the RichText box editor, but not able to add shapes (Line, Eclipse, Rectangle etc.) Can anyone provide me a pointer to do so? Thanks.

    ____________________________________________________________ rishabhs

    R A 2 Replies Last reply
    0
    • R r i s h a b h s

      Hi All, I am developing a WYSIWYG editor using Silverlight 4.0 RichText box. I am able to insert images in the RichText box editor, but not able to add shapes (Line, Eclipse, Rectangle etc.) Can anyone provide me a pointer to do so? Thanks.

      ____________________________________________________________ rishabhs

      R Offline
      R Offline
      r i s h a b h s
      wrote on last edited by
      #2

      I found this: http://social.msdn.microsoft.com/Forums/en/vblanguage/thread/b3521ad3-7ceb-4019-b3ba-441aae1f5a41[^] But this does not resolve my problem. :(

      ____________________________________________________________ rishabhs

      1 Reply Last reply
      0
      • R r i s h a b h s

        Hi All, I am developing a WYSIWYG editor using Silverlight 4.0 RichText box. I am able to insert images in the RichText box editor, but not able to add shapes (Line, Eclipse, Rectangle etc.) Can anyone provide me a pointer to do so? Thanks.

        ____________________________________________________________ rishabhs

        A Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #3

        What have you tried so far? Did you try myrichTextBox.Selection.Insert(container); where container is an layout control (say, a stackpanel) containing a shape.

        R 1 Reply Last reply
        0
        • A Abhinav S

          What have you tried so far? Did you try myrichTextBox.Selection.Insert(container); where container is an layout control (say, a stackpanel) containing a shape.

          R Offline
          R Offline
          r i s h a b h s
          wrote on last edited by
          #4

          Thanks Abhinav for your reply. I tried inserting a shape using UIControl. My requirement is to add shapes like rectangle, ellipse with the same functionality (resize, backcolor, shadow etc) as provided by Word or Visio. I will try the option suggested by you and will let you know. Thanks.

          ____________________________________________________________ rishabhs

          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