Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# コードからテキストブロックのフォントサイズ アニメーションを開始したいと思います。これどうやってするの?
1秒間にフォントサイズを増減したい。
ありがとう!
DoubleAnimation animation = new DoubleAnimation(20, TimeSpan.FromSeconds(1.0)); MyTextBlock.BeginAnimation(TextBlock.FontSizeProperty, animation);
MyTextBlock はアニメーション化する TextBlock のインスタンスで、20 はターゲットのフォントサイズです。