尝试从 xaml 执行按钮 clcik 事件时出现以下错误
<Button x:Name="myButton" Content="Surface History"
HorizontalAlignment="Right">
<Button.Triggers>
<EventTrigger RoutedEvent="Button.Click">
<BeginStoryboard>
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="MyText"
Storyboard.TargetProperty="Text">
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Hello" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
<TextBox Name="MyText" Text="Hi"/>
Text
Storyboard.TargetProperty
路径包含非动画属性Text
。