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 - What items can I apply transitions to?

 
 
Old 10-18-2007   #1 (permalink)
Glenn


 
 

What items can I apply transitions to?

Hello,

I'm just starting to transition from WinForms to WPF and have a few
questions. What items can I apply transitions to? The application I need to
build requires many different media types transitioning in and out of the
maid WPF screen - Video, Web Content, RSS Feed, static images, text, etc.

I played with the basic fade transition demonstrated here:
http://msdn2.microsoft.com/en-us/lib...AnimateSection
which fades a rectangle object in and out, but I was unable to figure out how
to apply it to web content shown in my grid. Here is what I converted the
code to in my feeble attempt:

<Grid Name="myGrid" Loaded="myLoaded">
<Frame Source="http://www.google.com/" />
<Grid.Triggers>
<EventTrigger RoutedEvent="Grid.Loaded">
<BeginStoryboard Name="myStoryBoard">
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="myGrid"
Storyboard.TargetProperty="Opacity"
From="1.0" To="0.0" Duration="0:0:5"
AutoReverse="True" RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Grid.Triggers>
</Grid>

Could anyone help me get a better handle on what my limitations are here? Do
I need to load video and web content in a different type of object?

Thanks,

Glenn


My System SpecsSystem Spec
Old 10-18-2007   #2 (permalink)
Laurent Bugnion, MVP


 
 

Re: What items can I apply transitions to?

Hi Glenn,

Glenn wrote:
Quote:

> Hello,
>
> I'm just starting to transition from WinForms to WPF and have a few
> questions. What items can I apply transitions to? The application I need to
> build requires many different media types transitioning in and out of the
> maid WPF screen - Video, Web Content, RSS Feed, static images, text, etc.
You can apply transitions (and generally any kind of transforms) to
DirectX content. Unfortunately, you cannot apply this to any content
drawn to GDI. And as you had to find out the hard way, the Frame element
is using Internet Explorer to display web pages, and guess what, IE
draws against GDI... so no luck applying the transition there.

Video, images, text and other content can be transformed, so transitions
will work.

Sorry :-(
Laurent
Quote:

>
> I played with the basic fade transition demonstrated here:
> http://msdn2.microsoft.com/en-us/lib...AnimateSection
> which fades a rectangle object in and out, but I was unable to figure out how
> to apply it to web content shown in my grid. Here is what I converted the
> code to in my feeble attempt:
>
> <Grid Name="myGrid" Loaded="myLoaded">
> <Frame Source="http://www.google.com/" />
> <Grid.Triggers>
> <EventTrigger RoutedEvent="Grid.Loaded">
> <BeginStoryboard Name="myStoryBoard">
> <Storyboard>
> <DoubleAnimation
> Storyboard.TargetName="myGrid"
> Storyboard.TargetProperty="Opacity"
> From="1.0" To="0.0" Duration="0:0:5"
> AutoReverse="True" RepeatBehavior="Forever" />
> </Storyboard>
> </BeginStoryboard>
> </EventTrigger>
> </Grid.Triggers>
> </Grid>
>
> Could anyone help me get a better handle on what my limitations are here? Do
> I need to load video and web content in a different type of object?
>
> Thanks,
>
> Glenn
>
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
Old 10-18-2007   #3 (permalink)
Glenn


 
 

Re: What items can I apply transitions to?

Not that answer I was hoping for . But thanks so much for the response.

Glenn

"Laurent Bugnion, MVP" wrote:
Quote:

> Hi Glenn,
>
> Glenn wrote:
Quote:

> > Hello,
> >
> > I'm just starting to transition from WinForms to WPF and have a few
> > questions. What items can I apply transitions to? The application I need to
> > build requires many different media types transitioning in and out of the
> > maid WPF screen - Video, Web Content, RSS Feed, static images, text, etc.
>
> You can apply transitions (and generally any kind of transforms) to
> DirectX content. Unfortunately, you cannot apply this to any content
> drawn to GDI. And as you had to find out the hard way, the Frame element
> is using Internet Explorer to display web pages, and guess what, IE
> draws against GDI... so no luck applying the transition there.
>
> Video, images, text and other content can be transformed, so transitions
> will work.
>
> Sorry :-(
> Laurent
>
Quote:

> >
> > I played with the basic fade transition demonstrated here:
> > http://msdn2.microsoft.com/en-us/lib...AnimateSection
> > which fades a rectangle object in and out, but I was unable to figure out how
> > to apply it to web content shown in my grid. Here is what I converted the
> > code to in my feeble attempt:
> >
> > <Grid Name="myGrid" Loaded="myLoaded">
> > <Frame Source="http://www.google.com/" />
> > <Grid.Triggers>
> > <EventTrigger RoutedEvent="Grid.Loaded">
> > <BeginStoryboard Name="myStoryBoard">
> > <Storyboard>
> > <DoubleAnimation
> > Storyboard.TargetName="myGrid"
> > Storyboard.TargetProperty="Opacity"
> > From="1.0" To="0.0" Duration="0:0:5"
> > AutoReverse="True" RepeatBehavior="Forever" />
> > </Storyboard>
> > </BeginStoryboard>
> > </EventTrigger>
> > </Grid.Triggers>
> > </Grid>
> >
> > Could anyone help me get a better handle on what my limitations are here? Do
> > I need to load video and web content in a different type of object?
> >
> > Thanks,
> >
> > Glenn
> >
>
> --
> Laurent Bugnion [MVP ASP.NET]
> Software engineering, Blog: http://www.galasoft.ch
> PhotoAlbum: http://www.galasoft.ch/pictures
> Support children in Calcutta: http://www.calcutta-espoir.ch
>
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Choppy transitions Vista music pictures video
Transitions not working Vista music pictures video
Song Transitions Vista music pictures video
Transitions are not smooth Vista music pictures video
What are C1 Transitions? How can I stop them? Vista performance & maintenance


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