Skip to content

Commit

Permalink
Include the TabItem clode button visual directly, so we don't have to…
Browse files Browse the repository at this point in the history
… have a dependency on the icons project

Fixes #1524
  • Loading branch information
flagbug committed Aug 24, 2014
1 parent d57d1e4 commit 1cca4e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MahApps.Metro/Themes/MetroTabItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@
IsTabStop="False"
Command="{TemplateBinding CloseTabCommand}"
CommandParameter="{TemplateBinding CloseTabCommandParameter}">
<Button.Resources>
<Canvas x:Key="tabitem_close" Width="76" Height="76" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Width="31.6666" Height="31.6667" Canvas.Left="22.1666" Canvas.Top="22.1667" Stretch="Fill" Fill="{DynamicResource BlackBrush}" Data="F1 M 26.9166,22.1667L 37.9999,33.25L 49.0832,22.1668L 53.8332,26.9168L 42.7499,38L 53.8332,49.0834L 49.0833,53.8334L 37.9999,42.75L 26.9166,53.8334L 22.1666,49.0833L 33.25,38L 22.1667,26.9167L 26.9166,22.1667 Z "/>
</Canvas>
</Button.Resources>
<Button.OpacityMask>
<VisualBrush Stretch="Uniform"
Visual="{DynamicResource appbar_close}" />
Visual="{StaticResource tabitem_close}" />
</Button.OpacityMask>
</Button>
</StackPanel>
Expand Down

0 comments on commit 1cca4e1

Please sign in to comment.