solomon mwika

solomon mwika

  • 1.5k
  • 210
  • 7.8k

Animating text in windows phone textblock

Feb 13 2014 8:59 AM
please help on these I landed myself into wholly new topic that i have no idea of how it goes
 
I want to animate text so that it moves from top of textblock to the bottom with time 
I also want the text to be blinking while it moves downwards.
 
sounds fun to me to do it but spent some days trying using  StoryBoard and doubleAnimation
no avail
please note am reading the text from a file
the code  xaml
 
<TextBlock x:Name="Animatedtext"
TextAlignment="Center" HorizontalAlignment="Center" Height="222" Margin="10,42,10,402" TextWrapping="NoWrap" VerticalAlignment="Center" Width="460"
CharacterSpacing="0"
FontSize="29">
<TextBlock.Projection>
<PlaneProjection/>
</TextBlock.Projection>
<TextBlock.Foreground>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFEEFF00" Offset="0.719"/>
<GradientStop Color="Yellow" Offset="1"/>
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock> 
 
The csharp timer
 my timer event
public void Timer_tick(object sender, EventArgs e)
{
String myvariable;
wordstype = mymenu.CheckWords();
String myword;

thatword = callmymethod.Mymethod(5);
Animatedtext.Text = thatword;
myword = tlbRandomWords.Text;

if (myword.ToString().ToUpper() == tlbuser.Text && tlbuser.Text != "")
{
counter++;
MessageBox.Show(counter.ToString());
}