![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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. 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| 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 | |||