![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | displaying web page inside a WPF tab control I have a XAML browser application that contains a tab control in the main page. on click of each tab - I will like to navigate to a web page and display the page inside that tab. How do I do that? what XAML constructs do I need to use? |
| | #2 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control Use a Frame element, where the source points to the HTML file. "BM" <BM@discussions.microsoft.com> wrote in message news:F2F7E66A-E380-45F3-AB5B-8C01008E8A90@microsoft.com... >I have a XAML browser application that contains a tab control in the main > page. on click of each tab - I will like to navigate to a web page and > display the page inside that tab. How do I do that? what XAML constructs > do I > need to use? |
| | #3 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control Thanks. How do I capture events from the web page hosted inside my XBAP application? For example - when a hyeperlink is clicked on the HTML page - I will like to switch tab page on the main page of the XBAP. How can I do that? "Pablo Fernicola [MS]" wrote: > Use a Frame element, where the source points to the HTML file. > > "BM" <BM@discussions.microsoft.com> wrote in message > news:F2F7E66A-E380-45F3-AB5B-8C01008E8A90@microsoft.com... > >I have a XAML browser application that contains a tab control in the main > > page. on click of each tab - I will like to navigate to a web page and > > display the page inside that tab. How do I do that? what XAML constructs > > do I > > need to use? > > > |
| | #4 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
| |
| |
| | #5 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
| | #6 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
| | #7 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
| | #8 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
| | #9 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
| | #10 (permalink) |
| Guest | Re: displaying web page inside a WPF tab control BM wrote: > How do I capture events from the web page hosted inside my XBAP > application? For example - when a hyeperlink is clicked on the HTML > page - I will like to switch tab page on the main page of the XBAP. > How can I do that? Unfortunately there's no way to do this when using a Frame AFAIK. If you need this level of interactivity with the HTML content you'll need to host the MSHTML control more directly in your application. The simplest way is to just use the WinForms WebBrowser control. Once you have that inside your app, you can hook up to its Document's various top level events to monitor activity within the DOM. See the attached example created with EID for a quick look at how this might work out. HTH, Drew ___________________________________ Drew Marsh Chief Software Architect Mimeo.com, Inc. - http://www.mimeo.com Microsoft C# / WPF MVP Weblog - http://blog.hackedbrain.com/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quicktime control bar inside explorer | cpage | Vista General | 1 | 05-19-2008 03:30 PM |
| Problem displaying .NET assembly on web page (Space in URL) | Turbot | .NET General | 0 | 04-16-2008 06:57 AM |
| keyboard peoperties inside control panel is gone | vmt | Vista General | 1 | 06-11-2007 01:10 PM |
| Displaying XML in WPF Frame Control | JB Scoggins | Avalon | 0 | 05-22-2007 08:21 AM |
| displaying a deserialized Page in ElementHost | Robert Ludig | Avalon | 1 | 03-23-2007 11:01 AM |