diff --git a/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin b/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin index 4a3bf923..fecc00a9 100644 Binary files a/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin and b/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin differ diff --git a/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin b/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin index 4d4fe5fe..c36ab32e 100644 Binary files a/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin and b/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin differ diff --git a/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml b/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml index 8eb6f94e..ad31c9c6 100644 --- a/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml +++ b/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml @@ -74,14 +74,14 @@ 1, cast Color "#000000", cast Color "#FFFF00", - cast Color "#00FF00" + cast Color "#FFFF00" ); } static func Pressed(): RadioButtonTemplateState^ { return new RadioButtonTemplateState^( - 0, + 1, cast Color "#FFFFFF", cast Color "#00FF00", cast Color "#00000000" @@ -132,15 +132,15 @@ { case Normal: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Normal(), cast UInt64 750); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::NormalSelected(), cast UInt64 250); } case Active: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Active(), cast UInt64 750); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::ActiveSelected(), cast UInt64 250); } case Pressed: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Pressed(), cast UInt64 750); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::PressedSelected(), cast UInt64 250); } } } @@ -150,15 +150,15 @@ { case Normal: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::NormalSelected(), cast UInt64 750); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Normal(), cast UInt64 250); } case Active: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::ActiveSelected(), cast UInt64 750); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Active(), cast UInt64 250); } case Pressed: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::PressedSelected(), cast UInt64 750); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Pressed(), cast UInt64 250); } } } @@ -174,18 +174,16 @@ left:0 top:0 bottom:0 - right:-( - cast int ( - self.animationBuilder.Current.Length * ( - self.boundary.Bounds.x2 - self.boundary.Bounds.x1 - 10 - ) + right:( + cast int Math::Round( + (1 - self.animationBuilder.Current.Length) * (self.boundary.Bounds.x2 - self.boundary.Bounds.x1 - 10) ) ) }; } ]]> - +