Is WPF right for my app?

I am in the process of determining if WPF is right for my app. My app requires that my main entry form look like a paper form for example a IRS 1040a. I can draw this form very easily on a Canvas, but because the canvas is position based, it doesn't resize with the screen, however I need to be able to resize the whole canvas based on screen size. I have tried the grid and stack panel but the wrapping and resizing doesn't work for what I want. I have to maintain the look of the form and maintain the aspect ratio as well. Any suggestions or where to look for examples would be greatly appreciated.

rockowpb



Answer this question

Is WPF right for my app?

  • Sam_res03

    Thanks so much. The viewbox did the trick. Works great. Wow this is really good stuff.
  • eldiener

    A few things to try

    • Yes, experiment with Viewbox.
    • Also, take a look at LayoutTransform - a property defined on FrameworkElement.
    • You may also want to experiment with FixedPage (part of the XPS subset of XAML) and the DocumentViewer.

    Thanks, Rob Relyea
    Program Manager, WPF Team
    http://rrelyea.spaces.live.com


  • Otis Mukinfus

    Sounds like you miss the Viewbox stuff.

    Sheva


  • Is WPF right for my app?