Guys,
I really like new redesigned themes, however I don't quite understand the implementation. I noticed most of the style attribute values (i.e. margin or padding) are no longer template-bound but used directly:
Telerik.Windows.Themes.Summer.g.resources:themes/summer/tabcontrol.xaml
What I can see the margin is set to {StaticResource TabItem_Margin} instead of {TemplateBinding Margin} (which obviously would be set to a default value of TabItem_Margin in the style declaration as it had been implemented before). Hence, it is not possible to amend just the margin without defining the whole template for TabItem or playing with static resource reference fallback mechanism. Is it the indented implementation or something you are planning to change in the future?
Kind Regards,
Milosz
I really like new redesigned themes, however I don't quite understand the implementation. I noticed most of the style attribute values (i.e. margin or padding) are no longer template-bound but used directly:
Telerik.Windows.Themes.Summer.g.resources:themes/summer/tabcontrol.xaml
<!-- --> |
<Thickness x:Key="TabItem_Margin">1 0</Thickness> |
<!-- top tab template --> |
<ControlTemplate x:Key="TabItemTemplate" TargetType="telerikNavigation:RadTabItem"> |
<Grid x:Name="wrapper"> |
<VisualStateManager.VisualStateGroups> |
<!-- ... --> |
</VisualStateManager.VisualStateGroups> |
<!-- normal --> |
<Border x:Name="NormalVisual" |
Margin="{StaticResource TabItem_Margin}" |
BorderBrush="{TemplateBinding BorderBrush}" |
Background="{TemplateBinding Background}" |
BorderThickness="{TemplateBinding BorderThickness}" |
CornerRadius="{StaticResource TabItem_OuterCornerRadius}"> |
<Border BorderBrush="{StaticResource TabItem_InnerBorder_Normal}" |
CornerRadius="{StaticResource TabItem_InnerCornerRadius}" |
BorderThickness="{StaticResource TabItem_InnerBorderThickness}" /> |
</Border> |
What I can see the margin is set to {StaticResource TabItem_Margin} instead of {TemplateBinding Margin} (which obviously would be set to a default value of TabItem_Margin in the style declaration as it had been implemented before). Hence, it is not possible to amend just the margin without defining the whole template for TabItem or playing with static resource reference fallback mechanism. Is it the indented implementation or something you are planning to change in the future?
Kind Regards,
Milosz