Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - displaying web page inside a WPF tab control

 
 
Old 06-15-2006   #1 (permalink)
BM


 
 

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?

My System SpecsSystem Spec
Old 06-16-2006   #2 (permalink)
Pablo Fernicola [MS]


 
 

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?



My System SpecsSystem Spec
Old 06-16-2006   #3 (permalink)
BM


 
 

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?

>
>
>

My System SpecsSystem Spec
Old 06-16-2006   #4 (permalink)
Drew Marsh


 
 

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/


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Every Windows Explorer page is blank inside! Someone's had to have had this problem! General Discussion
Quicktime control bar inside explorer Vista General
Problem displaying .NET assembly on web page (Space in URL) .NET General
keyboard peoperties inside control panel is gone Vista General


Vista Forums 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 Ltd

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