Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8454459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:02:26+00:00 2026-06-10T12:02:26+00:00

I want to animate the text of a textbox using StringAnimationUsingKeyFrames and DiscreteStringKeyFrame <TextBlock

  • 0

I want to animate the text of a textbox using StringAnimationUsingKeyFrames and DiscreteStringKeyFrame

<TextBlock x:Name="txtStateRunning" HorizontalAlignment="Center" VerticalAlignment="Center">
   <TextBlock.Triggers>
         <EventTrigger RoutedEvent="TextBlock.Loaded">
             <BeginStoryboard>
                 <Storyboard x:Name="textAnimation">
                     <StringAnimationUsingKeyFrames Storyboard.TargetName="txtStateRunning" 
                                                           Storyboard.TargetProperty="Text" RepeatBehavior="Forever" AutoReverse="False" >
                         <DiscreteStringKeyFrame Value="Running ."   KeyTime="0:0:0" />
                         <DiscreteStringKeyFrame Value="Running .."  KeyTime="0:0:0.5" />
                         <DiscreteStringKeyFrame Value="Running ..." KeyTime="0:0:1" />
                         <DiscreteStringKeyFrame Value="Running ...." KeyTime="0:0:1.5" />
                     </StringAnimationUsingKeyFrames>
                 </Storyboard>
             </BeginStoryboard>
            </EventTrigger>
        </TextBlock.Triggers>
    </TextBlock>

In the code I have 4 * DiscreteStringKeyFrame but actually I see only 3 * running. The DiscreteStringKeyFrame at time 1.5 is not executed. What I am missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:02:27+00:00Added an answer on June 10, 2026 at 12:02 pm

    It is happening because your last frame begining to show and instantly replacing by first frame.

    You can fix it by adding one more DiscreteStringKeyFrame at the end:

    <DiscreteStringKeyFrame Value="" KeyTime="0:0:2" />
    

    Or by setting Duration for StringAnimationUsingKeyFrames:

    <StringAnimationUsingKeyFrames Duration="0:0:2" ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to animate a string of text taken from an html element using
I have a few divs that I want to animate using jQuery. However, I
I want to use .animate to change colors when .bind('click') is fired, using jquery
I want the the text to randomly appear left, center, or right within the
I looking for way to animate text with jQuery. I want to display 'logging
I Have an edit control (a text field) which I want to animate. The
How to toggle HTML text of an anchor tag using jQuery? I want an
I want to animate my UILabel whenever the text changes. For some context: I
Is there a way to animate the text displayed by UILabel . I want
Hello every I'm new in iPhone development I want to animate text word by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.