mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-02 15:50:49 +08:00
feat: set Margin to 0 for the last TabStripItem.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</Design.PreviewWith>
|
||||
|
||||
<ControlTheme x:Key="{x:Type TabStrip}" TargetType="TabStrip">
|
||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||
<Setter Property="VerticalAlignment" Value="Top" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="TabStrip">
|
||||
<Border
|
||||
@@ -52,7 +52,7 @@
|
||||
BasedOn="{StaticResource {x:Type TabStrip}}"
|
||||
TargetType="TabStrip">
|
||||
<Setter Property="ItemContainerTheme" Value="{StaticResource CardTabStripItem}" />
|
||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||
<Setter Property="VerticalAlignment" Value="Top" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="TabStrip">
|
||||
<Border
|
||||
|
||||
5
src/Semi.Avalonia/Styles/TabStrip.axaml
Normal file
5
src/Semi.Avalonia/Styles/TabStrip.axaml
Normal file
@@ -0,0 +1,5 @@
|
||||
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style Selector="TabStrip TabStripItem:nth-last-child(1)">
|
||||
<Setter Property="Margin" Value="0" />
|
||||
</Style>
|
||||
</Styles>
|
||||
@@ -1,3 +1,4 @@
|
||||
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<StyleInclude Source="avares://Semi.Avalonia/Styles/TabControl.axaml" />
|
||||
<StyleInclude Source="avares://Semi.Avalonia/Styles/TabStrip.axaml" />
|
||||
</Styles>
|
||||
Reference in New Issue
Block a user