Upcoming WPF Samples

Here’s a list of a few WPF samples that I want to write soon (in no particular order):

  1. Building a FileUpload control
  2. Removing/restyling the NavigationWindow UI
  3. Displaying HTML inside of your WPF application
  4. Using URL arguments to enable “deep linking” for XBAPs
  5. Using Popup as a dialog in XBAPs

I’m posting the list here so that I don’t forget. :) But also, if you have any feedback — e.g. you really want to see the NavigationWindow UI sample before the HTML sample or there’s some other application model-oriented sample that you want to see before any of these — please let me know.

I won’t get to these until after TechEd Boston (next week!), but if you are blocked on any WPF questions in the meantime, feel free to contact me (as usual).

12 Responses to “Upcoming WPF Samples”


  1. 1 JoeW Jun 7th, 2006 at 2:45 pm

    When you say display HTML, are you talking about embedding the ie control or something far more clever - like a HTML->XAML type converter.

  2. 2 lauren Jun 7th, 2006 at 2:58 pm

    I’m talking about using the Frame control to host HTML inside of your WPF app:

    <Frame Source=”http://microsoft.com/” />

    There are some interesting considerations when using this method, especially in an Internet Zone XBAP, that I’d like to write about.

    An HTML –> XAML converter would be a great sample though — I wonder whether anyone out there already has one?

  3. 3 David Jun 9th, 2006 at 10:06 am

    Lauren,

    I am trying to use a tab control to display multiple pages dynamically.
    I have a menu and in the menu handler I contruct a TabItem and then add a frame, which links to a xaml page. When it runs nothing displays. I would like to use this model to enable a user to see multple data bound xaml pages. These are the type os samples that I would love to see. I cannot bind everthing up in xaml because the data pages will be fed dynamically by selecting the info to display.

    The code in the menu handler is:

    TabItem tabItem = new TabItem();
    tabItem.Header = “My Xaml”;

    Frame tabFrm = new Frame();
    tabFrm.Name = “MyXamlFrame”;
    tabFrm.Source = new Uri( “MyXaml.xaml”, UriKind.Relative );

    tabItem.Content = tabFrm;

    Contents.Items.Add( tabItem );

    Contents is the TabControl and the xaml contains:

    First Name

    Last Name

  4. 4 David Jun 9th, 2006 at 10:08 am

    The xaml code in comment got chopped, but First Name and Last Name are labels and their parent is a stack panel

  5. 5 David Jun 10th, 2006 at 5:58 pm

    Lauren,

    As another request data validation of text box element. I am going to look at the SDKViewer example, but some simpler examples. Do regular expressions exist like they do in Asp.net?

    Thanks

  6. 6 Angela Jul 19th, 2006 at 8:28 am

    Any progress on any of these samples? I’d like to see 2 and 3 ASAP.

  7. 7 Chad Nov 24th, 2006 at 4:58 pm

    Hi Lauren,

    Has the displaying HTML content within WPF example been implemented? This would be extremely helpful!
    Thanks for your efforts!

  8. 8 Andrew Beery Jan 11th, 2007 at 2:23 pm

    Lauren…

    I’m hoping you (or someone you know) can help me with a WPF Frame issue… I would really like to have a multiframe application that features hyperbar-like icons for the frames (which are hosting HTML)… I thought I could be clever and just use the frame as a visual brush, assign said brush to a rectangle control and voola… instant live icons… alas by journey down this path has been fraught with disappointment… although I can make the aforementioned visual brush all I see is the navigation bar… none of the web page I am hosting. I’ve tried to figure out how to get a dc or hwnd so I could bitblt but no joy in Mudville — mighty Andy has struck out. Any constructive thoughts or suggestions (or working sample code!) that might assist me in my endeavors?

  9. 9 Andrew Beery Jan 18th, 2007 at 12:59 pm

    Another WPF Question… I wish to store the layout of my applications window and subtending grids… I have no problem reading and writting what I want to an XML configuration file for the window heigth and width but I cannot figure out how to programmatically (c#) read and set the four gridsplitter controls I have in my application… I don’t see any examples for handling gridsplitters in code on the web. Directly resizing the panels is undesirable because this screws up the normal gridsplitter resize functionality. Thanks for any help

  10. 10 Steve Jan 21st, 2008 at 3:43 pm

    Displaying HTML inside of your WPF application .

    This is exactly what I’m trying to do, but I’m trying to do this with an rss feed. Any ideas?

  1. 1 WPF Team Bloggers Trackback on Jun 11th, 2006 at 12:53 pm
  2. 2 WPF Community Bloggers Trackback on Jun 11th, 2006 at 1:03 pm

Leave a Reply