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 - Trouble customizing a frame in WPF

 
 
Old 01-08-2007   #1 (permalink)
Chris Lincoln


 
 

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


 
 

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
 

Thread Tools


Similar Threads
Thread Forum
Solved Customizing the Desktop General Discussion
Customizing IE 8 Browsers & Mail
Customizing Vista Vista General
Customizing Folders Vista General
customizing right_click->new 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