68 lines
3.5 KiB
XML
68 lines
3.5 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent">
|
|
|
|
<Style TargetType="{x:Type controls:PageControlDocumentation}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type controls:PageControlDocumentation}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
<ui:Button
|
|
Margin="0,0,5,0"
|
|
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
CommandParameter="doc"
|
|
Content="Documentation"
|
|
Icon="{ui:SymbolIcon Document24}"
|
|
Visibility="{TemplateBinding IsDocumentationLinkVisible}" />
|
|
<ui:Button
|
|
Margin="0,0,5,0"
|
|
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
CommandParameter="xaml"
|
|
Content="XAML source code" />
|
|
<ui:Button
|
|
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
CommandParameter="c#"
|
|
Content="C# source code" />
|
|
</StackPanel>
|
|
|
|
<ui:Button
|
|
Grid.Column="1"
|
|
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
CommandParameter="theme"
|
|
Icon="{ui:SymbolIcon WeatherSunny24}"
|
|
ToolTip="Toggle theme" />
|
|
<Separator
|
|
Grid.Column="2"
|
|
Height="16"
|
|
Margin="4,0,4,0" />
|
|
<ui:Button
|
|
Grid.Column="3"
|
|
Command="{Binding Path=TemplateButtonCommand, RelativeSource={RelativeSource TemplatedParent}}"
|
|
CommandParameter="copy"
|
|
Icon="{ui:SymbolIcon Link24}"
|
|
ToolTip="Copy link" />
|
|
<ui:Anchor
|
|
Grid.Column="4"
|
|
Margin="4,0,0,0"
|
|
Icon="{ui:SymbolIcon PersonFeedback24}"
|
|
NavigateUri="https://github.com/lepoco/wpfui/issues/new?assignees=pomianowski&labels=bug,gallery&template=bug_report.yaml&title=WPF+UI+Gallery+Problem"
|
|
ToolTip="Send feedback" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|