witam
dopiero zacząłem zabawę z WPF (wcześniej WinForms) i mam taki problem ze stylem:
<Style TargetType="{x:Type TabControl}" x:Key="StandardTabControl">
<Style.Resources>
<Style TargetType="{x:Type TabItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" Value="#"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Style.Resources>
</Style>
(usunąłem trochę kodu)
chciał bym zmienić kolor czcionki:
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" Value="#"/>
</Trigger>
</ControlTemplate.Triggers>
Tutaj zmieniam kolor tła, ale jak zmienić kolor czcionki? (Foreground nie działa)
//Nie wiem czemu, ale po zmianie stylu na forum przy pisaniu nowej wiadomości przycisk wyślij jest nieaktywny - nie wiem czy to błąd, czy tak ma być :)