|
948 | 948 | </ControlTemplate.Triggers>
|
949 | 949 | </ControlTemplate>
|
950 | 950 | <Style x:Key="WD.DefaultMenuItem" BasedOn="{StaticResource WD.ControlBasicStyle}" TargetType="{x:Type MenuItem}">
|
| 951 | + <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=Menu}, Path=FontSize}" /> |
| 952 | + <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=Menu}, Path=FontWeight}" /> |
| 953 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=Menu}, Path=FontFamily}" /> |
951 | 954 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
|
952 | 955 | <Style.Triggers>
|
953 | 956 | <Trigger Property="Role" Value="TopLevelHeader">
|
|
1817 | 1820 | <Setter Property="BorderThickness" Value="0" />
|
1818 | 1821 | <Setter Property="Background" Value="{DynamicResource WD.PlaceholderTextBrush}" />
|
1819 | 1822 | <Setter Property="FontSize" Value="{Binding FontSize, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
| 1823 | + <Setter Property="FontFamily" Value="{Binding FontFamily, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /> |
| 1824 | + <Setter Property="FontWeight" Value="{Binding FontWeight, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /> |
1820 | 1825 | <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
1821 | 1826 | <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
1822 | 1827 | <Setter Property="Foreground" Value="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
2384 | 2389 | <Setter Property="BorderBrush" Value="Transparent" />
|
2385 | 2390 | <Setter Property="Background" Value="Transparent" />
|
2386 | 2391 | <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontSize}" />
|
| 2392 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontFamily}" /> |
2387 | 2393 | <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontWeight}" />
|
2388 | 2394 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGrid}}}" />
|
2389 | 2395 | <Setter Property="Template">
|
|
2413 | 2419 | <Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
|
2414 | 2420 | <Setter Property="Background" Value="{DynamicResource WD.BackgroundBrush}" />
|
2415 | 2421 | <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontSize}" />
|
| 2422 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontFamily}" /> |
2416 | 2423 | <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontWeight}" />
|
2417 | 2424 | <Setter Property="ValidationErrorTemplate">
|
2418 | 2425 | <Setter.Value>
|
|
2489 | 2496 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
2490 | 2497 | <Setter Property="HorizontalAlignment" Value="Center" />
|
2491 | 2498 | <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontSize}" />
|
| 2499 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontFamily}" /> |
2492 | 2500 | <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontWeight}" />
|
2493 | 2501 | <Setter Property="Template">
|
2494 | 2502 | <Setter.Value>
|
|
2532 | 2540 | <Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
|
2533 | 2541 | <Setter Property="BorderThickness" Value="0,0,0,1" />
|
2534 | 2542 | <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontSize}" />
|
| 2543 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontFamily}" /> |
2535 | 2544 | <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=FontWeight}" />
|
2536 | 2545 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGrid}}}" />
|
2537 | 2546 | <Setter Property="Template">
|
|
3175 | 3184 | <Setter Property="Background" Value="Transparent" />
|
3176 | 3185 | <Setter Property="Foreground" Value="{DynamicResource WD.PrimaryTextBrush}" />
|
3177 | 3186 | <Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
|
| 3187 | + <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=ListBox}, Path=FontSize}" /> |
| 3188 | + <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=ListBox}, Path=FontWeight}" /> |
| 3189 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=ListBox}, Path=FontFamily}" /> |
3178 | 3190 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
|
3179 | 3191 | <Setter Property="Template">
|
3180 | 3192 | <Setter.Value>
|
|
3248 | 3260 | <Style x:Key="WD.DefaultGridViewColumnHeader" BasedOn="{StaticResource WD.ControlBasicStyle}" TargetType="{x:Type GridViewColumnHeader}">
|
3249 | 3261 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
3250 | 3262 | <Setter Property="VerticalContentAlignment" Value="Center" />
|
3251 |
| - <Setter Property="FontWeight" Value="ExtraBlack" /> |
3252 | 3263 | <Setter Property="Background" Value="{DynamicResource WD.BackgroundBrush}" />
|
3253 | 3264 | <Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
|
3254 | 3265 | <Setter Property="BorderThickness" Value="0,0,0,1" />
|
| 3266 | + <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontSize}" /> |
| 3267 | + <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontWeight}" /> |
| 3268 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontFamily}" /> |
3255 | 3269 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
|
3256 | 3270 | <Setter Property="Template">
|
3257 | 3271 | <Setter.Value>
|
|
3321 | 3335 | <Setter Property="Background" Value="Transparent" />
|
3322 | 3336 | <Setter Property="BorderBrush" Value="{DynamicResource WD.BaseBrush}" />
|
3323 | 3337 | <Setter Property="BorderThickness" Value="0,0,0,1" />
|
| 3338 | + <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontSize}" /> |
| 3339 | + <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontWeight}" /> |
| 3340 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=ListView}, Path=FontFamily}" /> |
3324 | 3341 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
|
3325 | 3342 | <Setter Property="Template">
|
3326 | 3343 | <Setter.Value>
|
|
3522 | 3539 | <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
3523 | 3540 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
|
3524 | 3541 | <Setter Property="FocusVisualStyle" Value="{StaticResource WD.TreeViewItemFocusVisual}" />
|
| 3542 | + <Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType=TreeView}, Path=FontSize}" /> |
| 3543 | + <Setter Property="FontWeight" Value="{Binding RelativeSource={RelativeSource AncestorType=TreeView}, Path=FontWeight}" /> |
| 3544 | + <Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType=TreeView}, Path=FontFamily}" /> |
3525 | 3545 | <Setter Property="Template">
|
3526 | 3546 | <Setter.Value>
|
3527 | 3547 | <ControlTemplate TargetType="{x:Type TreeViewItem}">
|
|
5484 | 5504 | <Setter Property="Margin" Value="1,0" />
|
5485 | 5505 | <Setter Property="helpers:ElementHelper.CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
5486 | 5506 | <Setter Property="Padding" Value="{Binding Padding, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}}" />
|
| 5507 | + <Setter Property="FontSize" Value="{Binding FontSize, RelativeSource={RelativeSource AncestorType={x:Type controls:MultiSelectComboBoxItem}}}" /> |
| 5508 | + <Setter Property="FontFamily" Value="{Binding FontFamily, RelativeSource={RelativeSource AncestorType={x:Type controls:MultiSelectComboBoxItem}}}" /> |
| 5509 | + <Setter Property="FontWeight" Value="{Binding FontWeight, RelativeSource={RelativeSource AncestorType={x:Type controls:MultiSelectComboBoxItem}}}" /> |
5487 | 5510 | <Setter Property="Template">
|
5488 | 5511 | <Setter.Value>
|
5489 | 5512 | <ControlTemplate TargetType="{x:Type controls:MultiSelectComboBoxItem}">
|
5490 | 5513 | <Border x:Name="PART_Border" Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}" SnapsToDevicePixels="true">
|
5491 | 5514 | <CheckBox MinHeight="{TemplateBinding MinHeight}" HorizontalAlignment="Stretch" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" helpers:ElementHelper.CornerRadius="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}" Foreground="{TemplateBinding Foreground}" IsChecked="{Binding IsSelected, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
5492 |
| - <ContentPresenter x:Name="PART_ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" TextElement.Foreground="{TemplateBinding Foreground}" /> |
| 5515 | + <ContentPresenter x:Name="PART_ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" TextElement.FontFamily="{TemplateBinding FontFamily}" TextElement.FontSize="{TemplateBinding FontSize}" TextElement.Foreground="{TemplateBinding Foreground}" /> |
5493 | 5516 | </CheckBox>
|
5494 | 5517 | </Border>
|
5495 | 5518 | <ControlTemplate.Triggers>
|
|
5535 | 5558 | <TextBox Name="PART_EditableTextBox" Padding="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Panel.ZIndex="1" Background="Transparent" Focusable="True" Foreground="{DynamicResource WD.PrimaryTextBrush}" IsReadOnly="True" SelectionBrush="{DynamicResource WD.WindowBorderBrush}" Style="{x:Null}" Template="{StaticResource WD.ComboBoxTextBox}" Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" />
|
5536 | 5559 | <TextBlock x:Name="PART_Watermark" Padding="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Background="Transparent" FontSize="{StaticResource WD.PrimaryFontSize}" Foreground="{DynamicResource WD.RegularTextBrush}" IsHitTestVisible="False" Text="{Binding Path=(helpers:ElementHelper.Watermark), RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" TextTrimming="CharacterEllipsis" Visibility="Collapsed" />
|
5537 | 5560 | <ToggleButton x:Name="PART_ToggleButton" Grid.ColumnSpan="2" Background="{TemplateBinding Background}" ClickMode="Press" Focusable="False" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{x:Null}" Template="{StaticResource WD.ComboBoxToggleButton}" />
|
5538 |
| - <Popup x:Name="PART_Popup" AllowsTransparency="True" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Placement="Bottom" PlacementTarget="{Binding ElementName=PART_Border}" StaysOpen="False" Focusable="True"> |
| 5561 | + <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="True" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Placement="Bottom" PlacementTarget="{Binding ElementName=PART_Border}" StaysOpen="False"> |
5539 | 5562 | <controls:SmallPanel x:Name="PART_DropDown" MinWidth="{TemplateBinding FrameworkElement.ActualWidth}" MaxHeight="{TemplateBinding MaxDropDownHeight}" Margin="24,2,24,24" RenderTransformOrigin=".5,0" SnapsToDevicePixels="True">
|
5540 | 5563 | <controls:SmallPanel.RenderTransform>
|
5541 | 5564 | <ScaleTransform ScaleY="0" />
|
|
0 commit comments