|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 6 | xmlns:local="clr-namespace:MeowType.NetDebug" |
| 7 | + xmlns:dragablz="http://dragablz.net/winfx/xaml/dragablz" |
| 8 | + xmlns:dockablz="http://dragablz.net/winfx/xaml/dockablz" |
7 | 9 | mc:Ignorable="d" Name="self" |
8 | 10 | d:DesignHeight="30" d:DesignWidth="200" MinWidth="50" MaxWidth="200"> |
9 | 11 | <UserControl.Resources> |
|
59 | 61 | <local:TabBg x:Name="tab_bg"> |
60 | 62 | <local:TabBg.Style> |
61 | 63 | <Style TargetType="local:TabBg"> |
62 | | - <Setter Property="Opacity" Value="0"></Setter> |
| 64 | + <Setter Property="Opacity" Value="1"></Setter> |
63 | 65 | <Style.Triggers> |
64 | | - <DataTrigger Binding="{Binding IsSelected, ElementName=self}" Value="True"> |
65 | | - <Setter Property="Opacity" Value="1"></Setter> |
| 66 | + <DataTrigger Binding="{Binding IsSelected, ElementName=self}" Value="False"> |
| 67 | + <Setter Property="Opacity" Value="0"></Setter> |
| 68 | + </DataTrigger> |
| 69 | + <DataTrigger Binding="{Binding IsHover, ElementName=self}" Value="True"> |
| 70 | + <Setter Property="Opacity" Value="0.1"></Setter> |
66 | 71 | </DataTrigger> |
67 | 72 | </Style.Triggers> |
68 | 73 | </Style> |
69 | 74 | </local:TabBg.Style> |
70 | 75 | </local:TabBg> |
71 | 76 |
|
| 77 | + <Border Height="10" Width="1" Background="#77FFFFFF" HorizontalAlignment="Left"></Border> |
| 78 | + <Border Height="10" Width="1" Background="#77FFFFFF" HorizontalAlignment="Right"></Border> |
| 79 | + |
72 | 80 | <Grid WindowChrome.IsHitTestVisibleInChrome="True"> |
73 | 81 | <Grid.ColumnDefinitions> |
74 | 82 | <ColumnDefinition Width="*"></ColumnDefinition> |
75 | 83 | <ColumnDefinition Width="15"></ColumnDefinition> |
76 | 84 | </Grid.ColumnDefinitions> |
77 | 85 | <Label Name="TabContent" DataContext="{Binding ElementName=self}" Content="{Binding Title, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Padding="5,0" Margin="5,0,15,0" VerticalAlignment="Center"> |
| 86 | + <Label.Effect> |
| 87 | + <DropShadowEffect ShadowDepth="0" BlurRadius="5" Opacity="0.5"/> |
| 88 | + </Label.Effect> |
78 | 89 | <Label.Style> |
79 | 90 | <Style TargetType="Label"> |
80 | 91 | <Setter Property="Foreground" Value="#FFFCFCFC"></Setter> |
|
86 | 97 | </Style> |
87 | 98 | </Label.Style> |
88 | 99 | </Label> |
89 | | - <Button Grid.Column="1" Height="15" Width="15" BorderThickness="0" Padding="0" Margin="-15,0,0,0" Click="Close_Click" Style="{DynamicResource CloseButtonStyle}"> |
| 100 | + <Button Command="{x:Static dragablz:TabablzControl.CloseItemCommand}" Grid.Column="1" Height="15" Width="15" BorderThickness="0" Padding="0" Margin="-15,0,0,0" Click="Close_Click" Style="{DynamicResource CloseButtonStyle}"> |
90 | 101 | <Button.OpacityMask> |
91 | 102 | <VisualBrush> |
92 | 103 | <VisualBrush.Visual> |
|
0 commit comments