以前はfromtoアニメーションで境界線をアニメーション化していましたが、見栄えを良くするために、thicknesskeyframeを追加したいと思いました。.net4.0とvbを使用しています。
Dim t As New ThicknessAnimationUsingKeyFrames()
t.RepeatBehavior = RepeatBehavior.Forever
Dim instance As ThicknessKeyFrame
instance.Value = New Thickness(0, 0, 0, 0)
instance.KeyTime = TimeSpan.FromSeconds(0.0)
t.KeyFrames.Add(instance)
Dim instance2 As ThicknessKeyFrame
instance2.Value = New Thickness(1, 1, 1, 1)
instance2.KeyTime = TimeSpan.FromSeconds(0.5)
t.KeyFrames.Add(instance)
厚みのあるキーフレームをインスタンス化できません。これはインターフェイスだと思いますが、このコンテキストでの使用方法がわかりません。