-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from BAndysc/master
Styleable tab item header
- Loading branch information
Showing
6 changed files
with
88 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,34 @@ | ||
<Application xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:AvaloniaDemo" | ||
xmlns:idc="using:Dock.Avalonia.Controls" | ||
xmlns:core="using:Dock.Model.Core" | ||
x:Class="AvaloniaDemo.App"> | ||
<Application.DataTemplates> | ||
<local:ViewLocator/> | ||
</Application.DataTemplates> | ||
<Application.Styles> | ||
<Style Selector="idc|DocumentControl"> | ||
<Setter Property="HeaderTemplate"> | ||
<DataTemplate DataType="core:IDockable"> | ||
<StackPanel Orientation="Horizontal"> | ||
<PathIcon Data="M5 1C3.89543 1 3 1.89543 3 3V13C3 14.1046 3.89543 15 5 15H11C12.1046 15 13 14.1046 13 13V5.41421C13 5.01639 12.842 4.63486 12.5607 4.35355L9.64645 1.43934C9.36514 1.15804 8.98361 1 8.58579 1H5ZM4 3C4 2.44772 4.44772 2 5 2H8V4.5C8 5.32843 8.67157 6 9.5 6H12V13C12 13.5523 11.5523 14 11 14H5C4.44772 14 4 13.5523 4 13V3ZM11.7929 5H9.5C9.22386 5 9 4.77614 9 4.5V2.20711L11.7929 5Z" | ||
Width="16" | ||
Height="16" | ||
Margin="0"/> | ||
<TextBlock Text="{Binding Title}" | ||
VerticalAlignment="Center" | ||
Padding="4,0,0,0" /> | ||
</StackPanel> | ||
</DataTemplate> | ||
</Setter> | ||
</Style> | ||
<Style Selector="idc|ToolControl"> | ||
<Setter Property="HeaderTemplate"> | ||
<DataTemplate DataType="core:IDockable"> | ||
<TextBlock Text="{Binding Title}" Padding="2" /> | ||
</DataTemplate> | ||
</Setter> | ||
</Style> | ||
</Application.Styles> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters