如何在Wpf中将标签内容(在XAML文件中)更改为低到高和高大写

时间:2012-07-10 10:07:54

标签: c# wpf storyboard

<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中创建了一个故事板。然后将相同的stoboard应用于代码中的许多控件。因此,我必须更改lablel内容大写小写和小写大写在Freame by Frame。

上述代码可用于一个控件,在许多控件中不可能。我应该怎么做。

0 个答案:

没有答案