通过在wpf中使用DoubleAnimationUsingKeyFrames更改标签内容

时间:2015-07-15 07:55:08

标签: c# wpf

我尝试使用以下代码使用动画更改标签文字:

iOS Compatability ([​source][2])
Profile  Level Devices                                                     Options
Baseline 3.0  All devices                                                  -profile:v baseline -level 3.0
Baseline 3.1  iPhone 3G and later, iPod touch 2nd generation and later     -profile:v baseline -level 3.1
Main     3.1  iPad (all vers), Apple TV 2 and later, iPhone 4 and later    -profile:v main -level 3.1
Main     4.0  Apple TV 3 and later, iPad 2 and later, iPhone 4s and later  -profile:v main -level 4.0
High     4.0  Apple TV 3 and later, iPad 2 and later, iPhone 4s and later  -profile:v high -level 4.0
High     4.1  iPad 2 and later, iPhone 4s and later, iPhone 5c and later   -profile:v high -level 4.1
High     4.2  iPad Air and later, iPhone 5s and later                      -profile:v high -level 4.2

但它显示了这个错误:

  

无法动画内容'在...上的财产   ' System.Windows.Controls.Label'用一个   ' System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames'

我认为它无法将double值转换为字符串。那么你的解决方案是什么?

0 个答案:

没有答案