Как сбиндить Color от SolidColorBrush?
Brushes.xaml:
| Код | <ResourceDictionary ...> <SolidColorBrush x:Key="TextColor" Color="#FFF1F1F1"/> </ResourceDictionary>
|
A.xaml
| Код | <ResourceDictionary ...>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="../../Brushes.xaml"/> </ResourceDictionary.MergedDictionaries> ..... <ColorAnimation Storyboard.TargetName="AutoExecuteCheckBox" Storyboard.TargetProperty="Foreground.Color" From="{StaticResource TextColor}" To="Red" Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever">
|
Типы не совпадают. =( |