Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

displaying web page inside a WPF tab control

Closed Thread
 
Thread Tools Display Modes
Old 06-15-2006   #1 (permalink)
BM
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?
Old 06-16-2006   #2 (permalink)
Pablo Fernicola [MS]
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?



Old 06-16-2006   #3 (permalink)
BM
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?

>
>
>

Old 06-16-2006   #4 (permalink)
Drew Marsh
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/


Old 06-16-2006   #5 (permalink)
Drew Marsh
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/


Old 06-16-2006   #6 (permalink)
Drew Marsh
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/


Old 06-16-2006   #7 (permalink)
Drew Marsh
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/


Old 06-16-2006   #8 (permalink)
Drew Marsh
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/


Old 06-16-2006   #9 (permalink)
Drew Marsh
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/


Old 06-16-2006   #10 (permalink)
Drew Marsh
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/


Closed Thread

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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50