1
<Storyboard x:Key="ShiftAltClickValue2Animate">

        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Content)" Storyboard.TargetName="lbl_AWithDiaeresis">
            <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="Ä"/>
            <DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="ä"/>
        </ObjectAnimationUsingKeyFrames>
    </Storyboard>

我在 wpf 中创建了一个故事板。然后将相同的故事板应用到后面代码中的许多控件。所以我必须在 Freame by Frame中将标签内容从大写更改为小写,从小写更改为大写。

上面的代码对于一个控件是可能的,而在多个控件中是不可能的。我该怎么做。

4

0 回答 0