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 - Convert Code From Beta1

 
 
Old 01-10-2006   #1 (permalink)
Bruno Silva


 
 

Convert Code From Beta1

Hi Everyone, I got this app at work with some animations, it was built with
WinFX Beta1 and now we are converting the code to keep up-to-date with the
advances in XAML to be ready when the final comes out.

So, my problem is that I got this portion of code:
<SetterTimeline TargetName="Tmp1" Path="(Path.Opacity)">
<DoubleAnimationUsingKeyFrames Duration="0:0:4"
AutoReverse="False" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames.KeyFrames>
<LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" />
<LinearDoubleKeyFrame Value="1" KeyTime="0:0:2" />
<LinearDoubleKeyFrame Value="0" KeyTime="0:0:4" />
</DoubleAnimationUsingKeyFrames.KeyFrames>
</DoubleAnimationUsingKeyFrames>
</SetterTimeline>

And I don't know what replaces SetterTimeline now.
Thanks
Bruno Silva

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
craig kelly-soens www.XpectWorld.com


 
 

SetterTimeline RE: Convert Code From Beta1

hi bruno,
its frustrating but its cutting edge so it changes !

firstly SetterTimeline is gone, at least i dont have it anymore in my
projects.
As the language-tool moves to purity there is more of a tree structure.

you need to move the old SetterTimeline to the
<Page.Triggers>
area
and more or less rename
so:-
<Page ....
<Page.Triggers>
<EventTrigger RoutedEvent="Page.Loaded">
<BeginStoryboard>
<Storyboard>
<ParallelTimeline ...
<DoubleAnimation ...
<DoubleAnimation ...
<DoubleAnimation ...
</ParallelTimeline>
</ParallelTimeline>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Page.Triggers>
</Page>

Make sure you have the XAML extensions for .net 2005 final installed it will
help you a lot.
for Nov 05 CTP\Vista SDK see C:\Program Files\Microsoft
SDKs\Windows\v1.0\Samples
and search for *.xaml - copy them all to a non-compressed .zip and then
rename it to .txt, you then have all the XAML examples together to search
through !!

There is also a tool to convert the gradient colour codes easily too. search
here and you will find it posted by me. Karsten Januszewski of Microsoft told
me about it so you could include his name too.

Please contact me via the below website for a further chat.

craig kelly-soens - Windows Vista WinFx XAML .Net Evangelist
http://www.XpectWorld.com - for customised "super-easy to use" Windows Vista
based software

"Bruno Silva" wrote:

> Hi Everyone, I got this app at work with some animations, it was built with
> WinFX Beta1 and now we are converting the code to keep up-to-date with the
> advances in XAML to be ready when the final comes out.
>
> So, my problem is that I got this portion of code:
> <SetterTimeline TargetName="Tmp1" Path="(Path.Opacity)">
> <DoubleAnimationUsingKeyFrames Duration="0:0:4"
> AutoReverse="False" RepeatBehavior="Forever">
> <DoubleAnimationUsingKeyFrames.KeyFrames>
> <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" />
> <LinearDoubleKeyFrame Value="1" KeyTime="0:0:2" />
> <LinearDoubleKeyFrame Value="0" KeyTime="0:0:4" />
> </DoubleAnimationUsingKeyFrames.KeyFrames>
> </DoubleAnimationUsingKeyFrames>
> </SetterTimeline>
>
> And I don't know what replaces SetterTimeline now.
> Thanks
> Bruno Silva

My System SpecsSystem Spec
Old 01-10-2006   #3 (permalink)
Bruno Silva


 
 

RE: SetterTimeline RE: Convert Code From Beta1

Thanks a lot, I have the Extentions installed, I was just looking for some
settertimeline like element
just a few more problems to solve and we're going, thanks a lot for your
help

"craig kelly-soens www.XpectWorld.com" wrote:

> hi bruno,
> its frustrating but its cutting edge so it changes !
>
> firstly SetterTimeline is gone, at least i dont have it anymore in my
> projects.
> As the language-tool moves to purity there is more of a tree structure.
>
> you need to move the old SetterTimeline to the
> <Page.Triggers>
> area
> and more or less rename
> so:-
> <Page ....
> <Page.Triggers>
> <EventTrigger RoutedEvent="Page.Loaded">
> <BeginStoryboard>
> <Storyboard>
> <ParallelTimeline ...
> <DoubleAnimation ...
> <DoubleAnimation ...
> <DoubleAnimation ...
> </ParallelTimeline>
> </ParallelTimeline>
> </Storyboard>
> </BeginStoryboard>
> </EventTrigger>
> </Page.Triggers>
> </Page>
>
> Make sure you have the XAML extensions for .net 2005 final installed it will
> help you a lot.
> for Nov 05 CTP\Vista SDK see C:\Program Files\Microsoft
> SDKs\Windows\v1.0\Samples
> and search for *.xaml - copy them all to a non-compressed .zip and then
> rename it to .txt, you then have all the XAML examples together to search
> through !!
>
> There is also a tool to convert the gradient colour codes easily too. search
> here and you will find it posted by me. Karsten Januszewski of Microsoft told
> me about it so you could include his name too.
>
> Please contact me via the below website for a further chat.
>
> craig kelly-soens - Windows Vista WinFx XAML .Net Evangelist
> http://www.XpectWorld.com - for customised "super-easy to use" Windows Vista
> based software
>
> "Bruno Silva" wrote:
>
> > Hi Everyone, I got this app at work with some animations, it was built with
> > WinFX Beta1 and now we are converting the code to keep up-to-date with the
> > advances in XAML to be ready when the final comes out.
> >
> > So, my problem is that I got this portion of code:
> > <SetterTimeline TargetName="Tmp1" Path="(Path.Opacity)">
> > <DoubleAnimationUsingKeyFrames Duration="0:0:4"
> > AutoReverse="False" RepeatBehavior="Forever">
> > <DoubleAnimationUsingKeyFrames.KeyFrames>
> > <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0" />
> > <LinearDoubleKeyFrame Value="1" KeyTime="0:0:2" />
> > <LinearDoubleKeyFrame Value="0" KeyTime="0:0:4" />
> > </DoubleAnimationUsingKeyFrames.KeyFrames>
> > </DoubleAnimationUsingKeyFrames>
> > </SetterTimeline>
> >
> > And I don't know what replaces SetterTimeline now.
> > Thanks
> > Bruno Silva

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Convert Vb code to VBscript VB Script
[ann] code sample to convert html to vb or vbs... VB Script
IE8 Beta1 Launched Vista News
Product key beta1 work for RC1? Vista installation & setup


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