diff --git a/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin b/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin index f1134b14..50869d82 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 bb789011..3e39e258 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 63752477..934b42ee 100644 --- a/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml +++ b/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml @@ -110,9 +110,9 @@ { var d = 0.1; if (x < d) { return 0; } - if (x > (1 - d)) { return 0; } - var y = (x - d * 2) * (1 / (1 - d * 2)); - if (y < 0.5) { return y * yx * 2; } else { return 0.5 + (y - 0.5) * (y - 0.5) * 2; } + if (x > (1 - d)) { return 1; } + var y = (x - d) * (1 / (1 - d * 2)); + if (y < 0.5) { return y * y * 2; } else { return 1 - (1 - y) * (1 - y) * 2; } } ]]> @@ -139,15 +139,15 @@ { case Normal: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::NormalSelected(), cast UInt64 500); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::NormalSelected(), cast UInt64 1000); } case Active: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::ActiveSelected(), cast UInt64 500); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::ActiveSelected(), cast UInt64 1000); } case Pressed: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::PressedSelected(), cast UInt64 500); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::PressedSelected(), cast UInt64 1000); } } } @@ -157,15 +157,15 @@ { case Normal: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Normal(), cast UInt64 500); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Normal(), cast UInt64 1000); } case Active: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Active(), cast UInt64 500); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Active(), cast UInt64 1000); } case Pressed: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Pressed(), cast UInt64 500); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Pressed(), cast UInt64 1000); } } }