简体   繁体   中英

Code behind version of WPF xaml animation code

I need code behind version of following xaml animation code.

https://docs.microsoft.com/fi-fi/dotnet/framework/wpf/graphics-multimedia/how-to-animate-a-string-by-using-key-frames

There is only one line code that I need your support.

    Dim myStringAnimationUsingKeyFrames As New Animation.StringAnimationUsingKeyFrames
    Dim myDiscreteStringKeyFrame As New Animation.DiscreteStringKeyFrame
    myDiscreteStringKeyFrame.KeyTime = "0:0:0"

Error screen shot: https://prnt.sc/kvgqfh

myDiscreteStringKeyFrame.KeyTime = TimeSpan.FromSeconds(0)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM