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 thoughts on “Upcoming WPF Samples”

  1. 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. 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. 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. The xaml code in comment got chopped, but First Name and Last Name are labels and their parent is a stack panel

  5. 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. Pingback: WPF Team Bloggers
  7. Hi Lauren,

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

  8. 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. 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. 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?

Comments are closed.