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 to create custom elements for inclusion in FlowDocument (need a general direction for literature) [modified]

How to create custom elements for inclusion in FlowDocument (need a general direction for literature) [modified]

Scheduled Pinned Locked Moved WCF and WF
wpfjsonhelptutorialquestion
1 Posts 1 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.
  • I Offline
    I Offline
    iliyang
    wrote on last edited by
    #1

    Hi all, I want to write a small note taking application that would allow to embed LaTeX formulas (as images) in the text. So far I have the functionality to generate a raster image given a piece of LaTeX code. The existing formatting functionality of the RichTextBox is more than enough for me and the only thing I need now is one custom inline element and one custom block element. These have to store both the LaTeX code and a cached image (which could be updated on demand). They also need to have a few custom properties (maybe XAML-visible) and to be able to serialize both the LaTeX code and the image into a XAML file. My problem is that I don't know where to look for information on how to create custom document elements and more generally custom classes that can integrate in XAML (e.g. how to expose their properties to XAML, how to serialize them). Any directions will be greatly appreciated! Maybe there are also some useful CodeProject articles on these topics? Thanks a lot in advance! EDIT: OK, I found info in books on how to deal with dependency properties and XAML. But still no good info on how to create custom document elements. What events are fired, how serialization is performed, and moreover how to handle these with custom elements.

    modified on Thursday, July 15, 2010 6:56 AM

    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