665665 </Style >
666666
667667<!-- 1. ToggleButton Stili (ComboBox'ın açma/kapama düğmesi için) -->
668- <!-- Bu stil, ana ComboBox stilinden ÖNCE tanımlanmalıdır. -->
669668<Style x : Key =" ComboBoxToggleButtonModernStyle" TargetType =" {x:Type ToggleButton}" >
670669 <Setter Property =" OverridesDefaultStyle" Value =" true" />
671670 <Setter Property =" Template" >
943942 <Setter Property =" CommandParameter" Value =" {Binding Content, RelativeSource={RelativeSource Self}}" />
944943 <Setter Property =" Width" Value =" 150" />
945944 </Style >
945+
946+ <Style x : Key =" ModernCheckBoxStyle" TargetType =" CheckBox" >
947+ <Setter Property =" Foreground" Value =" {StaticResource TextBrush}" />
948+ <Setter Property =" Background" Value =" Transparent" />
949+ <Setter Property =" BorderBrush" Value =" {StaticResource TopBarTextSecondaryBrush}" />
950+ <Setter Property =" BorderThickness" Value =" 1" />
951+ <Setter Property =" Cursor" Value =" Hand" />
952+ <Setter Property =" VerticalContentAlignment" Value =" Center" />
953+ <Setter Property =" Template" >
954+ <Setter .Value>
955+ <ControlTemplate TargetType =" CheckBox" >
956+ <StackPanel Orientation =" Horizontal" >
957+ <!-- CheckBox Kutusu ve İşareti için bir Grid -->
958+ <Grid Width =" 20" Height =" 20" VerticalAlignment =" Center" >
959+ <!-- Kutu için Border -->
960+ <Border x : Name =" CheckBoxBorder"
961+ Background =" {TemplateBinding Background}"
962+ BorderBrush =" {TemplateBinding BorderBrush}"
963+ BorderThickness =" {TemplateBinding BorderThickness}"
964+ CornerRadius =" 3" />
965+ <!-- Onay İşareti için Path (sadece işaretliyken görünür) -->
966+ <Path x : Name =" CheckMark"
967+ Data =" M 4,10 L 8,14 L 16,6"
968+ Stroke =" {StaticResource MainBackgroundBrush}"
969+ StrokeThickness =" 2.5"
970+ StrokeStartLineCap =" Round"
971+ StrokeEndLineCap =" Round"
972+ StrokeLineJoin =" Round"
973+ Opacity =" 0" />
974+ </Grid >
975+ <!-- CheckBox Metni -->
976+ <ContentPresenter Margin =" 10,0,0,0"
977+ VerticalAlignment =" Center"
978+ RecognizesAccessKey =" True" />
979+ </StackPanel >
980+ <ControlTemplate .Triggers>
981+ <!-- Fare üzerine gelince -->
982+ <Trigger Property =" IsMouseOver" Value =" True" >
983+ <Setter TargetName =" CheckBoxBorder" Property =" BorderBrush" Value =" {StaticResource PrimaryAccentBrush}" />
984+ </Trigger >
985+ <!-- İşaretli olduğunda -->
986+ <Trigger Property =" IsChecked" Value =" True" >
987+ <Setter TargetName =" CheckBoxBorder" Property =" Background" Value =" {StaticResource PrimaryAccentBrush}" />
988+ <Setter TargetName =" CheckBoxBorder" Property =" BorderBrush" Value =" {StaticResource PrimaryAccentBrush}" />
989+ <Setter TargetName =" CheckMark" Property =" Opacity" Value =" 1" />
990+ </Trigger >
991+ <!-- Devre dışı bırakıldığında -->
992+ <Trigger Property =" IsEnabled" Value =" False" >
993+ <Setter Property =" Opacity" Value =" 0.5" />
994+ </Trigger >
995+ </ControlTemplate .Triggers>
996+ </ControlTemplate >
997+ </Setter .Value>
998+ </Setter >
999+ </Style >
9461000
9471001</ResourceDictionary >
0 commit comments