В XAML у меня есть кнопка, к ней применен Templatete
| Код | <ControlTemplate TargetType="{x:Type Button}" x:Key="ImageButton"> .................................... </ControlTemplate>
//then i have a button
<Button Width="32" Height="32" Margin="0.5,5,0.5,5" Content="Images\shootdown.png" Grid.Row="0" Grid.Column="0" Template="{DynamicResource ImageButton}" x:Name="ID_ShootdownButton" Cursor="Hand" Click="ID_ShootdownButton_Click" ToolTip="Выключить компьютер" HorizontalAlignment="Right" />
|
В шаблоне ImageButton есть OuterGlowBitmapEffect с параметром GlowColor="Red" А я хочу в коде С# изменить этот параметр.
|