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

Trouble customizing a frame in WPF

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-08-2007   #1 (permalink)
Chris Lincoln
Guest


 

Trouble customizing a frame in WPF

Hello-

I am doing some testing for an upcoming project and have run into some
trouble. I have a frame tag with the source set to "http://live.com" as
a test. However, I am unable to affect the opacity, or transform the
tag at all.

<Frame Canvas.Top="0" Canvas.Left="0" Height="420" Width="600"
ScrollViewer.CanContentScroll="False" Source="http://live.com"></Frame>

any help would be greatly appreciated, as it seems I can't do anything
to the frame!

Thank you.

Chris


My System SpecsSystem Spec
Old 01-17-2007   #2 (permalink)
Mark Smith
Guest


 

Re: Trouble customizing a frame in WPF

Visual elements that host content which isn't WPF related, such as the
frame holding HTML don't support most of the translations or custom WPF
effects. Under the covers, the frame is hosting the IE web browser
object to render the HTML. Most translations and effects rely on the
composition engine which puts things together in memory and then
displays it to the underlying single HWND for the window. The IE web
browser control creates its own HWND and so WPF simply cannot do its
magic in this case.

This problem isn't unique to Frame, it also happens with any embedded
Windows Forms control, ActiveX control, etc.

You might check out the RSS sample Microsoft posted recently - it has
some code in it to parse and render HTML natively in WPF IIRC. You
could use something similar to display your HTML content and get the
effects you desire.

Good luck,
Mark Smith

My System SpecsSystem Spec
Old 01-17-2007   #3 (permalink)
Mark Smith
Guest


 

Re: Trouble customizing a frame in WPF

Visual elements that host content which isn't WPF related, such as the
frame holding HTML don't support most of the translations or custom WPF
effects. Under the covers, the frame is hosting the IE web browser
object to render the HTML. Most translations and effects rely on the
composition engine which puts things together in memory and then
displays it to the underlying single HWND for the window. The IE web
browser control creates its own HWND and so WPF simply cannot do its
magic in this case.

This problem isn't unique to Frame, it also happens with any embedded
Windows Forms control, ActiveX control, etc.

You might check out the RSS sample Microsoft posted recently - it has
some code in it to parse and render HTML natively in WPF IIRC. You
could use something similar to display your HTML content and get the
effects you desire.

Good luck,
Mark Smith

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alt-Tab Frame Drop CS:S rockster Gaming 14 4 Weeks Ago 09:43 PM
frame rates gazz496 Graphic cards 2 06-18-2008 04:51 PM
dot net frame work davi .NET General 0 03-29-2008 11:50 AM
customizing right_click->new montyphyton@gmail.com Vista General 0 06-06-2007 04:59 AM
Customizing Contacts nezos Vista mail 0 05-04-2007 02:01 PM


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 51