TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mahesh Jaiswal
NA
2
10.7k
WPF Marquee TextBlock
Jul 30 2015 7:59 AM
At each tick event of dispatchertimer, textblock marquee is jumping in wpf
Here is the code
<Grid Grid.Column="0">
<Canvas ClipToBounds="True" Name="canMain" Grid.Column="0" Grid.Row="0">
<TextBlock FontSize="35" FontWeight="Bold" Foreground="#ffffe400" Margin="0,0,0,0" Name="tbmarquee"></TextBlock>
</Canvas>
</Grid>
DoubleAnimation doubleAnimation = new DoubleAnimation();
doubleAnimation.From = -tbmarquee.ActualWidth;
doubleAnimation.To = canMain.ActualWidth;
doubleAnimation.RepeatBehavior = RepeatBehavior.Forever;
doubleAnimation.Duration = new Duration(TimeSpan.Parse("0:0:20"));
tbmarquee.BeginAnimation(Canvas.RightProperty, doubleAnimation);
Reply
Answers (
1
)
How to create Metro template in wpf?
Connection String in app.xaml file in WPF application