mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-28 12:13:24 +08:00
Compare commits
10 Commits
v12.0.0-rc
...
12.0.0-rc2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35b62fe3af | ||
|
|
c48d96e40f | ||
|
|
c128feb4ff | ||
|
|
48c3837d81 | ||
|
|
f22709fcb1 | ||
|
|
0fbcf43309 | ||
|
|
a1bda0d2d9 | ||
|
|
52cc3887b1 | ||
|
|
9cf27b3906 | ||
|
|
bfb3dd671b |
@@ -1,9 +1,9 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
<AvaloniaVersion>12.0.0-rc1</AvaloniaVersion>
|
<AvaloniaVersion>12.0.0-rc2</AvaloniaVersion>
|
||||||
<DataGridVersion>12.0.0-rc1</DataGridVersion>
|
<DataGridVersion>12.0.0-rc2</DataGridVersion>
|
||||||
<SkiaSharpVersion>3.119.1</SkiaSharpVersion>
|
<SkiaSharpVersion>3.119.3-preview.1.1</SkiaSharpVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)"/>
|
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)"/>
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
<PackageVersion Include="SkiaSharp" Version="$(SkiaSharpVersion)"/>
|
<PackageVersion Include="SkiaSharp" Version="$(SkiaSharpVersion)"/>
|
||||||
<PackageVersion Include="SkiaSharp.NativeAssets.WebAssembly" Version="$(SkiaSharpVersion)"/>
|
<PackageVersion Include="SkiaSharp.NativeAssets.WebAssembly" Version="$(SkiaSharpVersion)"/>
|
||||||
|
|
||||||
<PackageVersion Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.2.0"/>
|
<PackageVersion Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.2.0.2"/>
|
||||||
|
|
||||||
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0"/>
|
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.2"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -35,5 +35,30 @@
|
|||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Text="A.S.I.A" />
|
Text="A.S.I.A" />
|
||||||
</ButtonSpinner>
|
</ButtonSpinner>
|
||||||
|
<ButtonSpinner
|
||||||
|
Height="30"
|
||||||
|
AllowSpin="{Binding #allowSpinCheck.IsChecked}"
|
||||||
|
BorderThickness="1"
|
||||||
|
ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"
|
||||||
|
Spin="OnSpin"
|
||||||
|
Theme="{StaticResource SplitButtonSpinner}">
|
||||||
|
<TextBlock
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="A.S.I.A" />
|
||||||
|
</ButtonSpinner>
|
||||||
|
<ButtonSpinner
|
||||||
|
Height="30"
|
||||||
|
AllowSpin="{Binding #allowSpinCheck.IsChecked}"
|
||||||
|
ButtonSpinnerLocation="Left"
|
||||||
|
BorderThickness="1"
|
||||||
|
ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"
|
||||||
|
Spin="OnSpin"
|
||||||
|
Theme="{StaticResource SplitButtonSpinner}">
|
||||||
|
<TextBlock
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="A.S.I.A" />
|
||||||
|
</ButtonSpinner>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -58,18 +58,18 @@
|
|||||||
IsOpen="{Binding #isop.IsChecked}"
|
IsOpen="{Binding #isop.IsChecked}"
|
||||||
IsSticky="{Binding #isst.IsChecked}"
|
IsSticky="{Binding #isst.IsChecked}"
|
||||||
Width="{Binding #ws.Value}">
|
Width="{Binding #ws.Value}">
|
||||||
<AppBarButton Label="New" Icon="{DynamicResource SemiIconPlus}" />
|
<CommandBarButton Label="New" Icon="{DynamicResource SemiIconPlus}" />
|
||||||
<AppBarButton Label="Save" Icon="{DynamicResource SemiIconSave}" />
|
<CommandBarButton Label="Save" Icon="{DynamicResource SemiIconSave}" />
|
||||||
<AppBarSeparator />
|
<CommandBarSeparator />
|
||||||
<AppBarToggleButton Label="Bold" Icon="{DynamicResource SemiIconBold}" />
|
<CommandBarToggleButton Label="Bold" Icon="{DynamicResource SemiIconBold}" />
|
||||||
<AppBarToggleButton Label="Italic" Icon="{DynamicResource SemiIconItalic}" />
|
<CommandBarToggleButton Label="Italic" Icon="{DynamicResource SemiIconItalic}" />
|
||||||
<AppBarToggleButton IsChecked="True" IsEnabled="False" Label="Underline" Icon="{DynamicResource SemiIconUnderline}" />
|
<CommandBarToggleButton IsChecked="True" IsEnabled="False" Label="Underline" Icon="{DynamicResource SemiIconUnderline}" />
|
||||||
<AppBarSeparator />
|
<CommandBarSeparator />
|
||||||
<AppBarButton Label="Share" Icon="{DynamicResource SemiIconShare}" />
|
<CommandBarButton Label="Share" Icon="{DynamicResource SemiIconShare}" />
|
||||||
<AppBarButton Label="Export" Icon="{DynamicResource SemiIconExport}" />
|
<CommandBarButton Label="Export" Icon="{DynamicResource SemiIconExport}" />
|
||||||
<AppBarButton Label="Print" Icon="{DynamicResource SemiIconPrint}" />
|
<CommandBarButton Label="Print" Icon="{DynamicResource SemiIconPrint}" />
|
||||||
<AppBarSeparator />
|
<CommandBarSeparator />
|
||||||
<AppBarButton Label="Delete" Icon="{DynamicResource SemiIconDelete}" />
|
<CommandBarButton Label="Delete" Icon="{DynamicResource SemiIconDelete}" />
|
||||||
</CommandBar>
|
</CommandBar>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
@@ -79,12 +79,12 @@
|
|||||||
<TextBlock Text="CommandBar — With Secondary Commands (overflow)" />
|
<TextBlock Text="CommandBar — With Secondary Commands (overflow)" />
|
||||||
</GroupBox.Header>
|
</GroupBox.Header>
|
||||||
<CommandBar>
|
<CommandBar>
|
||||||
<AppBarButton Label="New" Icon="{DynamicResource SemiIconPlus}" />
|
<CommandBarButton Label="New" Icon="{DynamicResource SemiIconPlus}" />
|
||||||
<AppBarButton Label="Save" Icon="{DynamicResource SemiIconSave}" />
|
<CommandBarButton Label="Save" Icon="{DynamicResource SemiIconSave}" />
|
||||||
<AppBarButton Label="Share" Icon="{DynamicResource SemiIconShare}" />
|
<CommandBarButton Label="Share" Icon="{DynamicResource SemiIconShare}" />
|
||||||
<CommandBar.SecondaryCommands>
|
<CommandBar.SecondaryCommands>
|
||||||
<AppBarButton Label="Export" Icon="{DynamicResource SemiIconExport}" />
|
<CommandBarButton Label="Export" Icon="{DynamicResource SemiIconExport}" />
|
||||||
<AppBarButton Label="Delete" Icon="{DynamicResource SemiIconDelete}" />
|
<CommandBarButton Label="Delete" Icon="{DynamicResource SemiIconDelete}" />
|
||||||
</CommandBar.SecondaryCommands>
|
</CommandBar.SecondaryCommands>
|
||||||
</CommandBar>
|
</CommandBar>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|||||||
@@ -52,5 +52,10 @@
|
|||||||
<NumericUpDown Width="100" ButtonSpinnerLocation="Left" />
|
<NumericUpDown Width="100" ButtonSpinnerLocation="Left" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="Split" />
|
||||||
|
<NumericUpDown Classes="Split" Width="300" />
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -34,14 +34,10 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Border MinHeight="150" Theme="{StaticResource CardBorder}">
|
<Border MinHeight="150" Theme="{StaticResource CardBorder}">
|
||||||
<TabControl Classes.ReverseSeparator="{Binding #reverse.IsChecked}" TabStripPlacement="{Binding #place.SelectedValue}">
|
<TabControl Classes.ReverseSeparator="{Binding #reverse.IsChecked}" TabStripPlacement="{Binding #place.SelectedValue}">
|
||||||
<TabItem Content="Hello 1" Header="Tab 1" />
|
<TabItem Content="Hello 1" Header="文档" Icon="{StaticResource SemiIconFile}" />
|
||||||
<TabItem Content="Hello 2" Header="Tab 2" />
|
<TabItem Content="Hello 2" Header="快速起步" Icon="{StaticResource SemiIconGlobe}" />
|
||||||
<TabItem Content="Hello 3" Header="Tab 3" />
|
<TabItem Content="Hello 4" Header="无效" Icon="{StaticResource SemiIconClear}" IsEnabled="False" />
|
||||||
<TabItem Content="中文内容" Header="中文中文" />
|
<TabItem Content="Hello 3" Header="帮助" Icon="{StaticResource SemiIconHelpCircle}" />
|
||||||
<TabItem
|
|
||||||
Content="Hello 4"
|
|
||||||
Header="Tab 4"
|
|
||||||
IsEnabled="False" />
|
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Height="300" Theme="{StaticResource CardBorder}">
|
<Border Height="300" Theme="{StaticResource CardBorder}">
|
||||||
@@ -57,14 +53,10 @@
|
|||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Border MinHeight="150" Theme="{StaticResource CardBorder}">
|
<Border MinHeight="150" Theme="{StaticResource CardBorder}">
|
||||||
<TabControl TabStripPlacement="{Binding #place.SelectedValue}" Theme="{StaticResource LineTabControl}">
|
<TabControl TabStripPlacement="{Binding #place.SelectedValue}" Theme="{StaticResource LineTabControl}">
|
||||||
<TabItem Content="Hello 1" Header="Tab 1" />
|
<TabItem Content="Hello 1" Header="文档" Icon="{StaticResource SemiIconFile}" />
|
||||||
<TabItem Content="Hello 2" Header="Tab 2" />
|
<TabItem Content="Hello 2" Header="快速起步" Icon="{StaticResource SemiIconGlobe}" />
|
||||||
<TabItem Content="Hello 3" Header="Tab 3" />
|
<TabItem Content="Hello 4" Header="无效" Icon="{StaticResource SemiIconClear}" IsEnabled="False" />
|
||||||
<TabItem Content="中文内容" Header="中文中文" />
|
<TabItem Content="Hello 3" Header="帮助" Icon="{StaticResource SemiIconHelpCircle}" />
|
||||||
<TabItem
|
|
||||||
Content="Hello 4"
|
|
||||||
Header="Tab 4"
|
|
||||||
IsEnabled="False" />
|
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Height="300" Theme="{StaticResource CardBorder}">
|
<Border Height="300" Theme="{StaticResource CardBorder}">
|
||||||
@@ -82,14 +74,10 @@
|
|||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
Theme="{StaticResource CardBorder}">
|
Theme="{StaticResource CardBorder}">
|
||||||
<TabControl TabStripPlacement="{Binding #place.SelectedValue}" Theme="{StaticResource CardTabControl}">
|
<TabControl TabStripPlacement="{Binding #place.SelectedValue}" Theme="{StaticResource CardTabControl}">
|
||||||
<TabItem Content="Hello 1" Header="Tab 1" />
|
<TabItem Content="Hello 1" Header="文档" Icon="{StaticResource SemiIconFile}" />
|
||||||
<TabItem Content="Hello 2" Header="Tab 2" />
|
<TabItem Content="Hello 2" Header="快速起步" Icon="{StaticResource SemiIconGlobe}" />
|
||||||
<TabItem Content="Hello 3" Header="Tab 3" />
|
<TabItem Content="Hello 4" Header="无效" Icon="{StaticResource SemiIconClear}" IsEnabled="False" />
|
||||||
<TabItem Content="中文内容" Header="中文中文" />
|
<TabItem Content="Hello 3" Header="帮助" Icon="{StaticResource SemiIconHelpCircle}" />
|
||||||
<TabItem
|
|
||||||
Content="Hello 4"
|
|
||||||
Header="Tab 4"
|
|
||||||
IsEnabled="False" />
|
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Border>
|
</Border>
|
||||||
<Border
|
<Border
|
||||||
@@ -107,14 +95,10 @@
|
|||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Border MinHeight="150" Theme="{StaticResource CardBorder}">
|
<Border MinHeight="150" Theme="{StaticResource CardBorder}">
|
||||||
<TabControl TabStripPlacement="{Binding #place.SelectedValue}" Theme="{StaticResource ButtonTabControl}">
|
<TabControl TabStripPlacement="{Binding #place.SelectedValue}" Theme="{StaticResource ButtonTabControl}">
|
||||||
<TabItem Content="Hello 1" Header="Tab 1" />
|
<TabItem Content="Hello 1" Header="文档" Icon="{StaticResource SemiIconFile}" />
|
||||||
<TabItem Content="Hello 2" Header="Tab 2" />
|
<TabItem Content="Hello 2" Header="快速起步" Icon="{StaticResource SemiIconGlobe}" />
|
||||||
<TabItem Content="Hello 3" Header="Tab 3" />
|
<TabItem Content="Hello 4" Header="无效" Icon="{StaticResource SemiIconClear}" IsEnabled="False" />
|
||||||
<TabItem Content="中文内容" Header="中文中文" />
|
<TabItem Content="Hello 3" Header="帮助" Icon="{StaticResource SemiIconHelpCircle}" />
|
||||||
<TabItem
|
|
||||||
Content="Hello 4"
|
|
||||||
Header="Tab 4"
|
|
||||||
IsEnabled="False" />
|
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Height="300" Theme="{StaticResource CardBorder}">
|
<Border Height="300" Theme="{StaticResource CardBorder}">
|
||||||
|
|||||||
32
demo/Semi.Avalonia.Demo/Pages/WindowCustomizationsPage.axaml
Normal file
32
demo/Semi.Avalonia.Demo/Pages/WindowCustomizationsPage.axaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<UserControl xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
|
x:Class="Semi.Avalonia.Demo.Pages.WindowCustomizationsPage"
|
||||||
|
x:CompileBindings="True">
|
||||||
|
|
||||||
|
<StackPanel
|
||||||
|
Spacing="10"
|
||||||
|
IsEnabled="{OnFormFactor False, Desktop=True}">
|
||||||
|
<TextBlock Classes="H2" Text="Desktop properties" />
|
||||||
|
|
||||||
|
<CheckBox Content="Extend Client Area to Decorations"
|
||||||
|
IsChecked="{Binding $parent[Window].ExtendClientAreaToDecorationsHint}" />
|
||||||
|
|
||||||
|
<Slider IsEnabled="{Binding $parent[Window].ExtendClientAreaToDecorationsHint}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Width="201" Minimum="-1" Maximum="200"
|
||||||
|
Value="{Binding $parent[Window].ExtendClientAreaTitleBarHeightHint}" />
|
||||||
|
|
||||||
|
<CheckBox Content="Can Resize"
|
||||||
|
IsChecked="{Binding $parent[Window].CanResize}" />
|
||||||
|
|
||||||
|
<CheckBox Content="Can Minimize"
|
||||||
|
IsChecked="{Binding $parent[Window].CanMinimize}" />
|
||||||
|
|
||||||
|
<CheckBox Content="Can Maximize"
|
||||||
|
IsChecked="{Binding $parent[Window].CanMaximize}"
|
||||||
|
IsEnabled="{Binding $parent[Window].CanResize}" />
|
||||||
|
</StackPanel>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
using Avalonia.Controls;
|
||||||
|
|
||||||
|
namespace Semi.Avalonia.Demo.Pages
|
||||||
|
{
|
||||||
|
public partial class WindowCustomizationsPage : UserControl
|
||||||
|
{
|
||||||
|
public WindowCustomizationsPage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -278,6 +278,9 @@
|
|||||||
<TabItem Header="ThemeVariantScope">
|
<TabItem Header="ThemeVariantScope">
|
||||||
<pages:ThemeVariantDemo />
|
<pages:ThemeVariantDemo />
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
<TabItem Header="WindowCustomizationsPage">
|
||||||
|
<pages:WindowCustomizationsPage />
|
||||||
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -9,7 +9,6 @@
|
|||||||
d:DesignHeight="450"
|
d:DesignHeight="450"
|
||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
ExtendClientAreaToDecorationsHint="True"
|
ExtendClientAreaToDecorationsHint="True"
|
||||||
ExtendClientAreaTitleBarHeightHint="40"
|
|
||||||
Icon="/Assets/irihi.ico"
|
Icon="/Assets/irihi.ico"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<views:MainView Margin="{Binding $parent[Window].WindowDecorationMargin}" />
|
<views:MainView Margin="{Binding $parent[Window].WindowDecorationMargin}" />
|
||||||
|
|||||||
@@ -1,11 +1,38 @@
|
|||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Input;
|
||||||
|
|
||||||
namespace Semi.Avalonia.Demo.Views;
|
namespace Semi.Avalonia.Demo.Views;
|
||||||
|
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
|
private WindowState _stateBeforeFullScreen = WindowState.Normal;
|
||||||
|
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
KeyDown += FullScreenKeyDown;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FullScreenKeyDown(object? sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Key == Key.F11)
|
||||||
|
{
|
||||||
|
|
||||||
|
ToggleFullScreen();
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ToggleFullScreen()
|
||||||
|
{
|
||||||
|
if (WindowState is not WindowState.FullScreen)
|
||||||
|
{
|
||||||
|
_stateBeforeFullScreen = WindowState;
|
||||||
|
WindowState = WindowState.FullScreen;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WindowState = _stateBeforeFullScreen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
<AvaloniaVersion>12.0.0-rc1</AvaloniaVersion>
|
<AvaloniaVersion>12.0.0-rc2</AvaloniaVersion>
|
||||||
<DataGridVersion>12.0.0-rc1</DataGridVersion>
|
<DataGridVersion>12.0.0-rc2</DataGridVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)"/>
|
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)"/>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
Content="{TemplateBinding Content}"
|
Content="{TemplateBinding Content}"
|
||||||
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
@@ -92,7 +93,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
<Style Selector="^[ButtonSpinnerLocation=Left] /template/ Border#ButtonGroup">
|
<Style Selector="^:left /template/ Border#ButtonGroup">
|
||||||
<Setter Property="Grid.Column" Value="0" />
|
<Setter Property="Grid.Column" Value="0" />
|
||||||
<Setter Property="Margin" Value="0 0 4 0" />
|
<Setter Property="Margin" Value="0 0 4 0" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -100,4 +101,70 @@
|
|||||||
<Setter Property="BorderBrush" Value="{DynamicResource ButtonSpinnerRepeatButtonPointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonSpinnerRepeatButtonPointeroverBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
|
<ControlTheme x:Key="SplitButtonSpinner" TargetType="ButtonSpinner">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonSpinnerRepeatButtonBorderBrush}" />
|
||||||
|
<Setter Property="BorderThickness" Value="0" />
|
||||||
|
<Setter Property="MinWidth" Value="200" />
|
||||||
|
<Setter Property="Template">
|
||||||
|
<ControlTemplate TargetType="ButtonSpinner">
|
||||||
|
<Grid ColumnDefinitions="Auto, *, Auto">
|
||||||
|
<RepeatButton
|
||||||
|
Name="PART_DecreaseButton"
|
||||||
|
Grid.Column="0"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Padding="{DynamicResource SplitButtonSpinnerButtonPadding}"
|
||||||
|
BorderBrush="{DynamicResource ButtonSpinnerRepeatButtonBorderBrush}"
|
||||||
|
BorderThickness="{DynamicResource ButtonSpinnerButtonGroupBorderThickness}"
|
||||||
|
CornerRadius="{DynamicResource SplitButtonSpinnerLeftButtonCornerRadius}"
|
||||||
|
IsVisible="{TemplateBinding ShowButtonSpinner}"
|
||||||
|
Theme="{StaticResource ButtonSpinnerRepeatButton}">
|
||||||
|
<PathIcon
|
||||||
|
Theme="{DynamicResource InnerPathIcon}"
|
||||||
|
Classes="Small"
|
||||||
|
Data="{DynamicResource SplitButtonSpinnerDecreaseButtonGlyph}"
|
||||||
|
Foreground="{DynamicResource ButtonSpinnerRepeatButtonForeground}" />
|
||||||
|
</RepeatButton>
|
||||||
|
<Border
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="2 0"
|
||||||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
|
<ContentPresenter
|
||||||
|
Name="PART_ContentPresenter"
|
||||||
|
Padding="{TemplateBinding Padding}"
|
||||||
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
Content="{TemplateBinding Content}"
|
||||||
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||||
|
</Border>
|
||||||
|
<RepeatButton
|
||||||
|
Name="PART_IncreaseButton"
|
||||||
|
Grid.Column="2"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Padding="{DynamicResource SplitButtonSpinnerButtonPadding}"
|
||||||
|
BorderBrush="{DynamicResource ButtonSpinnerRepeatButtonBorderBrush}"
|
||||||
|
BorderThickness="{DynamicResource ButtonSpinnerButtonGroupBorderThickness}"
|
||||||
|
CornerRadius="{DynamicResource SplitButtonSpinnerRightButtonCornerRadius}"
|
||||||
|
IsVisible="{TemplateBinding ShowButtonSpinner}"
|
||||||
|
Theme="{StaticResource ButtonSpinnerRepeatButton}">
|
||||||
|
<PathIcon
|
||||||
|
Theme="{DynamicResource InnerPathIcon}"
|
||||||
|
Classes="Small"
|
||||||
|
Data="{DynamicResource SplitButtonSpinnerIncreaseButtonGlyph}"
|
||||||
|
Foreground="{DynamicResource ButtonSpinnerRepeatButtonForeground}" />
|
||||||
|
</RepeatButton>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter>
|
||||||
|
<Style Selector="^:left /template/ RepeatButton#PART_DecreaseButton">
|
||||||
|
<Setter Property="Grid.Column" Value="2" />
|
||||||
|
<Setter Property="CornerRadius" Value="{DynamicResource SplitButtonSpinnerRightButtonCornerRadius}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:left /template/ RepeatButton#PART_IncreaseButton">
|
||||||
|
<Setter Property="Grid.Column" Value="0" />
|
||||||
|
<Setter Property="CornerRadius" Value="{DynamicResource SplitButtonSpinnerLeftButtonCornerRadius}" />
|
||||||
|
</Style>
|
||||||
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -28,24 +28,24 @@
|
|||||||
DefaultLabelPosition="{Binding #lc.SelectedValue}"
|
DefaultLabelPosition="{Binding #lc.SelectedValue}"
|
||||||
IsDynamicOverflowEnabled="{Binding #idfe.IsChecked}"
|
IsDynamicOverflowEnabled="{Binding #idfe.IsChecked}"
|
||||||
Width="{Binding #ws.Value}">
|
Width="{Binding #ws.Value}">
|
||||||
<AppBarButton Label="New" Icon="{DynamicResource SemiIconPlus}" />
|
<CommandBarButton Label="New" Icon="{DynamicResource SemiIconPlus}" />
|
||||||
<AppBarButton Label="Save" Icon="{DynamicResource SemiIconSave}" />
|
<CommandBarButton Label="Save" Icon="{DynamicResource SemiIconSave}" />
|
||||||
<AppBarSeparator />
|
<CommandBarSeparator />
|
||||||
<AppBarToggleButton Label="Bold" Icon="{DynamicResource SemiIconBold}" />
|
<CommandBarToggleButton Label="Bold" Icon="{DynamicResource SemiIconBold}" />
|
||||||
<AppBarToggleButton Label="Italic" Icon="{DynamicResource SemiIconItalic}" />
|
<CommandBarToggleButton Label="Italic" Icon="{DynamicResource SemiIconItalic}" />
|
||||||
<AppBarToggleButton IsEnabled="False" IsChecked="True" Label="Underline" Icon="{DynamicResource SemiIconUnderline}" />
|
<CommandBarToggleButton IsEnabled="False" IsChecked="True" Label="Underline" Icon="{DynamicResource SemiIconUnderline}" />
|
||||||
<AppBarSeparator />
|
<CommandBarSeparator />
|
||||||
<AppBarButton Label="Share" Icon="{DynamicResource SemiIconShare}" />
|
<CommandBarButton Label="Share" Icon="{DynamicResource SemiIconShare}" />
|
||||||
<AppBarButton Label="Export" Icon="{DynamicResource SemiIconExport}" />
|
<CommandBarButton Label="Export" Icon="{DynamicResource SemiIconExport}" />
|
||||||
<AppBarButton Label="Print" Icon="{DynamicResource SemiIconPrint}" />
|
<CommandBarButton Label="Print" Icon="{DynamicResource SemiIconPrint}" />
|
||||||
<AppBarSeparator />
|
<CommandBarSeparator />
|
||||||
<AppBarButton Label="Delete" Icon="{DynamicResource SemiIconDelete}" />
|
<CommandBarButton Label="Delete" Icon="{DynamicResource SemiIconDelete}" />
|
||||||
</CommandBar>
|
</CommandBar>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
</Design.PreviewWith>
|
</Design.PreviewWith>
|
||||||
|
|
||||||
<ControlTheme x:Key="AppBarButtonBaseTheme" TargetType="Button">
|
<ControlTheme x:Key="CommandBarButtonBaseTheme" TargetType="Button">
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
<Border
|
<Border
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
Padding="{TemplateBinding Padding}">
|
Padding="{TemplateBinding Padding}">
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Name="PART_LayoutRoot"
|
Name="PART_LayoutRoot"
|
||||||
Spacing="{DynamicResource AppBarButtonPanelSpacing}"
|
Spacing="{DynamicResource CommandBarButtonPanelSpacing}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
@@ -73,50 +73,51 @@
|
|||||||
</ContentPresenter>
|
</ContentPresenter>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Name="PART_Label"
|
Name="PART_Label"
|
||||||
|
MaxLines="1"
|
||||||
Foreground="{TemplateBinding Foreground}"
|
Foreground="{TemplateBinding Foreground}"
|
||||||
FontSize="{DynamicResource AppBarButtonLabelFontSize}"
|
FontSize="{DynamicResource CommandBarButtonLabelFontSize}"
|
||||||
TextTrimming="CharacterEllipsis" />
|
TextTrimming="CharacterEllipsis" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarButtonBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarButtonBackground}" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource AppBarButtonForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CommandBarButtonForeground}" />
|
||||||
<Setter Property="BorderBrush" Value="Transparent" />
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
<Setter Property="BorderThickness" Value="0" />
|
<Setter Property="BorderThickness" Value="0" />
|
||||||
<Setter Property="Padding" Value="{DynamicResource AppBarButtonPadding}" />
|
<Setter Property="Padding" Value="{DynamicResource CommandBarButtonPadding}" />
|
||||||
<Setter Property="Width" Value="{DynamicResource AppBarButtonWidth}" />
|
<Setter Property="Width" Value="{DynamicResource CommandBarButtonWidth}" />
|
||||||
<Setter Property="MinHeight" Value="{DynamicResource AppBarButtonMinHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource CommandBarButtonMinHeight}" />
|
||||||
|
|
||||||
<Setter Property="CornerRadius" Value="{DynamicResource AppBarButtonCornerRadius}" />
|
<Setter Property="CornerRadius" Value="{DynamicResource CommandBarButtonCornerRadius}" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
|
|
||||||
<Style Selector="^:pointerover /template/ Border#PART_Border">
|
<Style Selector="^:pointerover /template/ Border#PART_Border">
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarButtonPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarButtonPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:pressed /template/ Border#PART_Border">
|
<Style Selector="^:pressed /template/ Border#PART_Border">
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarButtonPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarButtonPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
|
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource AppBarButtonDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CommandBarButtonDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource AppBarButtonDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CommandBarButtonDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
<!-- AppBarButton -->
|
<!-- CommandBarButton -->
|
||||||
<ControlTheme
|
<ControlTheme
|
||||||
x:Key="{x:Type AppBarButton}"
|
x:Key="{x:Type CommandBarButton}"
|
||||||
BasedOn="{StaticResource AppBarButtonBaseTheme}"
|
BasedOn="{StaticResource CommandBarButtonBaseTheme}"
|
||||||
TargetType="AppBarButton">
|
TargetType="CommandBarButton">
|
||||||
|
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="Text" Value="{TemplateBinding Label}" />
|
<Setter Property="Text" Value="{TemplateBinding Label}" />
|
||||||
@@ -127,7 +128,7 @@
|
|||||||
|
|
||||||
<!-- IsCompact: hide label, use compact width -->
|
<!-- IsCompact: hide label, use compact width -->
|
||||||
<Style Selector="^[IsCompact=True]">
|
<Style Selector="^[IsCompact=True]">
|
||||||
<Setter Property="Width" Value="{DynamicResource AppBarButtonCompactWidth}" />
|
<Setter Property="Width" Value="{DynamicResource CommandBarButtonCompactWidth}" />
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -135,7 +136,7 @@
|
|||||||
|
|
||||||
<!-- LabelPosition=Collapsed: hide label, use compact width -->
|
<!-- LabelPosition=Collapsed: hide label, use compact width -->
|
||||||
<Style Selector="^[LabelPosition=Collapsed]">
|
<Style Selector="^[LabelPosition=Collapsed]">
|
||||||
<Setter Property="Width" Value="{DynamicResource AppBarButtonCompactWidth}" />
|
<Setter Property="Width" Value="{DynamicResource CommandBarButtonCompactWidth}" />
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -144,7 +145,7 @@
|
|||||||
<!-- LabelPosition=Right: horizontal layout, auto-width -->
|
<!-- LabelPosition=Right: horizontal layout, auto-width -->
|
||||||
<Style Selector="^[LabelPosition=Right]">
|
<Style Selector="^[LabelPosition=Right]">
|
||||||
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
||||||
<Setter Property="MinWidth" Value="{DynamicResource AppBarButtonCompactWidth}" />
|
<Setter Property="MinWidth" Value="{DynamicResource CommandBarButtonCompactWidth}" />
|
||||||
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
||||||
<Setter Property="Orientation" Value="Horizontal" />
|
<Setter Property="Orientation" Value="Horizontal" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -160,8 +161,8 @@
|
|||||||
<Style Selector="^[IsInOverflow=True]">
|
<Style Selector="^[IsInOverflow=True]">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||||
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
||||||
<Setter Property="MinHeight" Value="{DynamicResource AppBarButtonOverflowMinHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource CommandBarButtonOverflowMinHeight}" />
|
||||||
<Setter Property="Padding" Value="{DynamicResource AppBarButtonOverflowPadding}" />
|
<Setter Property="Padding" Value="{DynamicResource CommandBarButtonOverflowPadding}" />
|
||||||
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
||||||
<Setter Property="Orientation" Value="Horizontal" />
|
<Setter Property="Orientation" Value="Horizontal" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -174,11 +175,11 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
<!-- AppBarToggleButton -->
|
<!-- CommandBarToggleButton -->
|
||||||
<ControlTheme
|
<ControlTheme
|
||||||
x:Key="{x:Type AppBarToggleButton}"
|
x:Key="{x:Type CommandBarToggleButton}"
|
||||||
BasedOn="{StaticResource AppBarButtonBaseTheme}"
|
BasedOn="{StaticResource CommandBarButtonBaseTheme}"
|
||||||
TargetType="AppBarToggleButton">
|
TargetType="CommandBarToggleButton">
|
||||||
|
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="Text" Value="{TemplateBinding Label}" />
|
<Setter Property="Text" Value="{TemplateBinding Label}" />
|
||||||
@@ -189,25 +190,25 @@
|
|||||||
|
|
||||||
<Style Selector="^:checked">
|
<Style Selector="^:checked">
|
||||||
<Style Selector="^ /template/ Border#PART_Border">
|
<Style Selector="^ /template/ Border#PART_Border">
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarToggleButtonCheckedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarToggleButtonCheckedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
|
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource AppBarToggleButtonCheckedForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CommandBarToggleButtonCheckedForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pointerover /template/ Border#PART_Border">
|
<Style Selector="^:pointerover /template/ Border#PART_Border">
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarToggleButtonCheckedPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarToggleButtonCheckedPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pressed /template/ Border#PART_Border">
|
<Style Selector="^:pressed /template/ Border#PART_Border">
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarToggleButtonCheckedPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarToggleButtonCheckedPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:disabled /template/ ContentPresenter#PART_IconPresenter">
|
<Style Selector="^:disabled /template/ ContentPresenter#PART_IconPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource AppBarToggleButtonCheckedDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CommandBarToggleButtonCheckedDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- IsCompact: hide label, use compact width -->
|
<!-- IsCompact: hide label, use compact width -->
|
||||||
<Style Selector="^[IsCompact=True]">
|
<Style Selector="^[IsCompact=True]">
|
||||||
<Setter Property="Width" Value="{DynamicResource AppBarButtonCompactWidth}" />
|
<Setter Property="Width" Value="{DynamicResource CommandBarButtonCompactWidth}" />
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -215,7 +216,7 @@
|
|||||||
|
|
||||||
<!-- LabelPosition=Collapsed: hide label, use compact width -->
|
<!-- LabelPosition=Collapsed: hide label, use compact width -->
|
||||||
<Style Selector="^[LabelPosition=Collapsed]">
|
<Style Selector="^[LabelPosition=Collapsed]">
|
||||||
<Setter Property="Width" Value="{DynamicResource AppBarButtonCompactWidth}" />
|
<Setter Property="Width" Value="{DynamicResource CommandBarButtonCompactWidth}" />
|
||||||
<Style Selector="^ /template/ TextBlock#PART_Label">
|
<Style Selector="^ /template/ TextBlock#PART_Label">
|
||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -224,7 +225,7 @@
|
|||||||
<!-- LabelPosition=Right: horizontal layout, auto-width -->
|
<!-- LabelPosition=Right: horizontal layout, auto-width -->
|
||||||
<Style Selector="^[LabelPosition=Right]">
|
<Style Selector="^[LabelPosition=Right]">
|
||||||
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
||||||
<Setter Property="MinWidth" Value="{DynamicResource AppBarButtonCompactWidth}" />
|
<Setter Property="MinWidth" Value="{DynamicResource CommandBarButtonCompactWidth}" />
|
||||||
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
||||||
<Setter Property="Orientation" Value="Horizontal" />
|
<Setter Property="Orientation" Value="Horizontal" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -240,8 +241,8 @@
|
|||||||
<Style Selector="^[IsInOverflow=True]">
|
<Style Selector="^[IsInOverflow=True]">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||||
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
||||||
<Setter Property="MinHeight" Value="{DynamicResource AppBarButtonOverflowMinHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource CommandBarButtonOverflowMinHeight}" />
|
||||||
<Setter Property="Padding" Value="{DynamicResource AppBarButtonOverflowPadding}" />
|
<Setter Property="Padding" Value="{DynamicResource CommandBarButtonOverflowPadding}" />
|
||||||
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
<Style Selector="^ /template/ StackPanel#PART_LayoutRoot">
|
||||||
<Setter Property="Orientation" Value="Horizontal" />
|
<Setter Property="Orientation" Value="Horizontal" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -254,14 +255,14 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
<!-- AppBarSeparator -->
|
<!-- CommandBarSeparator -->
|
||||||
<ControlTheme x:Key="{x:Type AppBarSeparator}" TargetType="AppBarSeparator">
|
<ControlTheme x:Key="{x:Type CommandBarSeparator}" TargetType="CommandBarSeparator">
|
||||||
<Setter Property="Background" Value="{DynamicResource AppBarSeparatorBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CommandBarSeparatorBackground}" />
|
||||||
<Setter Property="Width" Value="{DynamicResource AppBarSeparatorWidth}" />
|
<Setter Property="Width" Value="{DynamicResource CommandBarSeparatorWidth}" />
|
||||||
<Setter Property="MinHeight" Value="{DynamicResource AppBarSeparatorMinHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource CommandBarSeparatorMinHeight}" />
|
||||||
<Setter Property="Margin" Value="{DynamicResource AppBarSeparatorMargin}" />
|
<Setter Property="Margin" Value="{DynamicResource CommandBarSeparatorMargin}" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="AppBarSeparator">
|
<ControlTemplate TargetType="CommandBarSeparator">
|
||||||
<Border
|
<Border
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
Width="{TemplateBinding Width}"
|
Width="{TemplateBinding Width}"
|
||||||
@@ -273,9 +274,9 @@
|
|||||||
<Style Selector="^[IsInOverflow=True]">
|
<Style Selector="^[IsInOverflow=True]">
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||||
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
<Setter Property="Width" Value="{x:Static x:Double.NaN}" />
|
||||||
<Setter Property="Height" Value="{DynamicResource AppBarSeparatorOverflowHeight}" />
|
<Setter Property="Height" Value="{DynamicResource CommandBarSeparatorOverflowHeight}" />
|
||||||
<Setter Property="MinHeight" Value="0" />
|
<Setter Property="MinHeight" Value="0" />
|
||||||
<Setter Property="Margin" Value="{DynamicResource AppBarSeparatorOverflowMargin}" />
|
<Setter Property="Margin" Value="{DynamicResource CommandBarSeparatorOverflowMargin}" />
|
||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
@@ -299,9 +300,9 @@
|
|||||||
MinHeight="{TemplateBinding MinHeight}"
|
MinHeight="{TemplateBinding MinHeight}"
|
||||||
Padding="{TemplateBinding Padding}">
|
Padding="{TemplateBinding Padding}">
|
||||||
<Panel>
|
<Panel>
|
||||||
<DockPanel>
|
<DockPanel KeyboardNavigation.TabNavigation="Cycle">
|
||||||
<!-- Overflow button (docked right) -->
|
<!-- Overflow button (docked right) -->
|
||||||
<AppBarButton
|
<CommandBarButton
|
||||||
Name="PART_OverflowButton"
|
Name="PART_OverflowButton"
|
||||||
DockPanel.Dock="Right"
|
DockPanel.Dock="Right"
|
||||||
Icon="{DynamicResource CommandBarOverflowButtonGlyph}"
|
Icon="{DynamicResource CommandBarOverflowButtonGlyph}"
|
||||||
@@ -351,6 +352,7 @@
|
|||||||
CornerRadius="{DynamicResource CommandBarOverflowCornerRadius}">
|
CornerRadius="{DynamicResource CommandBarOverflowCornerRadius}">
|
||||||
|
|
||||||
<ItemsControl
|
<ItemsControl
|
||||||
|
Name="PART_OverflowPresenter"
|
||||||
ItemsSource="{Binding OverflowItems, RelativeSource={RelativeSource TemplatedParent}}">
|
ItemsSource="{Binding OverflowItems, RelativeSource={RelativeSource TemplatedParent}}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
|
|||||||
@@ -71,14 +71,16 @@
|
|||||||
Name="PART_DrawerHeader"
|
Name="PART_DrawerHeader"
|
||||||
DockPanel.Dock="Top"
|
DockPanel.Dock="Top"
|
||||||
Background="{TemplateBinding DrawerHeaderBackground}"
|
Background="{TemplateBinding DrawerHeaderBackground}"
|
||||||
Content="{TemplateBinding DrawerHeader}" />
|
Content="{TemplateBinding DrawerHeader}"
|
||||||
|
ContentTemplate="{TemplateBinding DrawerHeaderTemplate}" />
|
||||||
|
|
||||||
<!-- Drawer footer -->
|
<!-- Drawer footer -->
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
Name="PART_DrawerFooter"
|
Name="PART_DrawerFooter"
|
||||||
DockPanel.Dock="Bottom"
|
DockPanel.Dock="Bottom"
|
||||||
Background="{TemplateBinding DrawerFooterBackground}"
|
Background="{TemplateBinding DrawerFooterBackground}"
|
||||||
Content="{TemplateBinding DrawerFooter}" />
|
Content="{TemplateBinding DrawerFooter}"
|
||||||
|
ContentTemplate="{TemplateBinding DrawerFooterTemplate}" />
|
||||||
|
|
||||||
<!-- Compact pane icon (compact mode) -->
|
<!-- Compact pane icon (compact mode) -->
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
|
|||||||
@@ -116,5 +116,13 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter">
|
||||||
|
<Setter Property="RecognizesAccessKey" Value="True" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#PART_ContentPresenter">
|
||||||
|
<Setter Property="RecognizesAccessKey" Value="True" />
|
||||||
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -54,4 +54,17 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
|
<ControlTheme
|
||||||
|
x:Key="HorizontalMenuFlyoutPresenter"
|
||||||
|
TargetType="MenuFlyoutPresenter"
|
||||||
|
BasedOn="{StaticResource {x:Type MenuFlyoutPresenter}}">
|
||||||
|
<Setter Property="Padding" Value="0" />
|
||||||
|
<Setter Property="MinWidth" Value="{DynamicResource HorizontalMenuFlyoutThemeMinWidth}" />
|
||||||
|
<Setter Property="ItemsPanel">
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<StackPanel Orientation="Horizontal" />
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</Setter>
|
||||||
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -53,6 +53,15 @@
|
|||||||
<Setter Property="MinHeight" Value="{DynamicResource NumericUpDownSmallHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource NumericUpDownSmallHeight}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^.Split">
|
||||||
|
<Style Selector="^ /template/ ButtonSpinner#PART_Spinner">
|
||||||
|
<Setter Property="Theme" Value="{DynamicResource SplitButtonSpinner}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ TextBox#PART_TextBox">
|
||||||
|
<Setter Property="CornerRadius" Value="0" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:error">
|
<Style Selector="^:error">
|
||||||
<Style Selector="^ /template/ TextBox#PART_TextBox">
|
<Style Selector="^ /template/ TextBox#PART_TextBox">
|
||||||
<Setter Property="Background" Value="{DynamicResource DataValidationErrorsBackground}" />
|
<Setter Property="Background" Value="{DynamicResource DataValidationErrorsBackground}" />
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
|
|
||||||
<ControlTheme x:Key="{x:Type PipsPager}" TargetType="PipsPager">
|
<ControlTheme x:Key="{x:Type PipsPager}" TargetType="PipsPager">
|
||||||
<Setter Property="IsTabStop" Value="False" />
|
<Setter Property="IsTabStop" Value="False" />
|
||||||
<Setter Property="PreviousButtonStyle" Value="{StaticResource PipsPagerButton}" />
|
<Setter Property="PreviousButtonTheme" Value="{StaticResource PipsPagerButton}" />
|
||||||
<Setter Property="NextButtonStyle" Value="{StaticResource PipsPagerButton}" />
|
<Setter Property="NextButtonTheme" Value="{StaticResource PipsPagerButton}" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
ClipToBounds="False">
|
ClipToBounds="False">
|
||||||
<Button
|
<Button
|
||||||
Name="PART_PreviousButton"
|
Name="PART_PreviousButton"
|
||||||
Theme="{TemplateBinding PreviousButtonStyle}"
|
Theme="{TemplateBinding PreviousButtonTheme}"
|
||||||
IsVisible="{TemplateBinding IsPreviousButtonVisible}"
|
IsVisible="{TemplateBinding IsPreviousButtonVisible}"
|
||||||
Foreground="{DynamicResource PipsPagerButtonForeground}"
|
Foreground="{DynamicResource PipsPagerButtonForeground}"
|
||||||
Content="{StaticResource SemiIconSmallTriangleLeft}" />
|
Content="{StaticResource SemiIconSmallTriangleLeft}" />
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
|
|
||||||
<Button
|
<Button
|
||||||
Name="PART_NextButton"
|
Name="PART_NextButton"
|
||||||
Theme="{TemplateBinding NextButtonStyle}"
|
Theme="{TemplateBinding NextButtonTheme}"
|
||||||
Foreground="{DynamicResource PipsPagerButtonForeground}"
|
Foreground="{DynamicResource PipsPagerButtonForeground}"
|
||||||
Content="{StaticResource SemiIconSmallTriangleRight}"
|
Content="{StaticResource SemiIconSmallTriangleRight}"
|
||||||
IsVisible="{TemplateBinding IsNextButtonVisible}" />
|
IsVisible="{TemplateBinding IsNextButtonVisible}" />
|
||||||
|
|||||||
@@ -4,87 +4,54 @@
|
|||||||
xmlns:semi="https://irihi.tech/semi"
|
xmlns:semi="https://irihi.tech/semi"
|
||||||
xmlns:converters="using:Avalonia.Controls.Converters">
|
xmlns:converters="using:Avalonia.Controls.Converters">
|
||||||
<Design.PreviewWith>
|
<Design.PreviewWith>
|
||||||
<StackPanel Margin="20" Spacing="20">
|
<StackPanel Width="400" Margin="20">
|
||||||
<ProgressBar
|
<ProgressBar />
|
||||||
Width="200"
|
<ProgressBar Value="20" />
|
||||||
Maximum="100"
|
<ProgressBar Value="50" Classes="Success" />
|
||||||
Minimum="0"
|
<ProgressBar Value="80" Classes="Warning" />
|
||||||
ShowProgressText="True"
|
<ProgressBar Value="100" Classes="Error" />
|
||||||
Value="20" />
|
<ProgressBar ShowProgressText="True" />
|
||||||
<ProgressBar
|
<ProgressBar Value="20" ShowProgressText="True" />
|
||||||
Width="200"
|
<ProgressBar Value="50" Classes="Success" ShowProgressText="True" />
|
||||||
IsIndeterminate="True"
|
<ProgressBar Value="80" Classes="Warning" ShowProgressText="True" />
|
||||||
Maximum="100"
|
<ProgressBar Value="100" Classes="Error" ShowProgressText="True" />
|
||||||
Minimum="0"
|
<ProgressBar Classes="Left" ShowProgressText="True" />
|
||||||
ShowProgressText="True"
|
<ProgressBar Value="20" Classes="Left" ShowProgressText="True" />
|
||||||
Value="20" />
|
<ProgressBar Value="50" Classes="Left Success" ShowProgressText="True" />
|
||||||
<ProgressBar
|
<ProgressBar Value="80" Classes="Left Warning" ShowProgressText="True" />
|
||||||
Width="200"
|
<ProgressBar Value="100" Classes="Left Error" ShowProgressText="True" />
|
||||||
Classes="Left"
|
<ProgressBar Classes="Right" ShowProgressText="True" />
|
||||||
IsIndeterminate="True"
|
<ProgressBar Value="20" Classes="Right" ShowProgressText="True" />
|
||||||
Maximum="100"
|
<ProgressBar Value="50" Classes="Right Success" ShowProgressText="True" />
|
||||||
Minimum="0"
|
<ProgressBar Value="80" Classes="Right Warning" ShowProgressText="True" />
|
||||||
ShowProgressText="True"
|
<ProgressBar Value="100" Classes="Right Error" ShowProgressText="True" />
|
||||||
Value="20" />
|
|
||||||
<ProgressBar
|
<StackPanel Orientation="Horizontal">
|
||||||
Width="200"
|
<StackPanel.Styles>
|
||||||
Classes="Left"
|
<Style Selector="ProgressBar">
|
||||||
Maximum="100"
|
<Setter Property="Orientation" Value="Vertical" />
|
||||||
Minimum="0"
|
</Style>
|
||||||
ShowProgressText="True"
|
</StackPanel.Styles>
|
||||||
Value="20" />
|
<ProgressBar />
|
||||||
<ProgressBar
|
<ProgressBar Value="20" />
|
||||||
Width="200"
|
<ProgressBar Value="50" Classes="Success" />
|
||||||
Classes="Right"
|
<ProgressBar Value="80" Classes="Warning" />
|
||||||
Maximum="100"
|
<ProgressBar Value="100" Classes="Error" />
|
||||||
Minimum="0"
|
<ProgressBar ShowProgressText="True" />
|
||||||
ShowProgressText="True"
|
<ProgressBar Value="20" ShowProgressText="True" />
|
||||||
Value="20" />
|
<ProgressBar Value="50" Classes="Success" ShowProgressText="True" />
|
||||||
<StackPanel
|
<ProgressBar Value="80" Classes="Warning" ShowProgressText="True" />
|
||||||
HorizontalAlignment="Left"
|
<ProgressBar Value="100" Classes="Error" ShowProgressText="True" />
|
||||||
Orientation="Horizontal"
|
<ProgressBar Classes="Top" ShowProgressText="True" />
|
||||||
Spacing="20">
|
<ProgressBar Value="20" Classes="Top" ShowProgressText="True" />
|
||||||
<ProgressBar
|
<ProgressBar Value="50" Classes="Top Success" ShowProgressText="True" />
|
||||||
Classes="Left"
|
<ProgressBar Value="80" Classes="Top Warning" ShowProgressText="True" />
|
||||||
Maximum="100"
|
<ProgressBar Value="100" Classes="Top Error" ShowProgressText="True" />
|
||||||
Minimum="0"
|
<ProgressBar Classes="Bottom" ShowProgressText="True" />
|
||||||
Orientation="Vertical"
|
<ProgressBar Value="20" Classes="Bottom" ShowProgressText="True" />
|
||||||
ShowProgressText="True"
|
<ProgressBar Value="50" Classes="Bottom Success" ShowProgressText="True" />
|
||||||
Value="20" />
|
<ProgressBar Value="80" Classes="Bottom Warning" ShowProgressText="True" />
|
||||||
<ProgressBar
|
<ProgressBar Value="100" Classes="Bottom Error" ShowProgressText="True" />
|
||||||
Classes="Right"
|
|
||||||
Maximum="100"
|
|
||||||
Minimum="0"
|
|
||||||
Orientation="Vertical"
|
|
||||||
ShowProgressText="True"
|
|
||||||
Value="20" />
|
|
||||||
<ProgressBar
|
|
||||||
Maximum="100"
|
|
||||||
Minimum="0"
|
|
||||||
Orientation="Vertical"
|
|
||||||
ShowProgressText="True"
|
|
||||||
Value="20" />
|
|
||||||
<ProgressBar
|
|
||||||
Classes="Left"
|
|
||||||
Maximum="100"
|
|
||||||
Minimum="0"
|
|
||||||
Orientation="Vertical"
|
|
||||||
ShowProgressText="False"
|
|
||||||
Value="20" />
|
|
||||||
<ProgressBar
|
|
||||||
IsIndeterminate="True"
|
|
||||||
Maximum="100"
|
|
||||||
Minimum="0"
|
|
||||||
Orientation="Vertical"
|
|
||||||
ShowProgressText="True"
|
|
||||||
Value="20" />
|
|
||||||
<ProgressBar
|
|
||||||
IsIndeterminate="True"
|
|
||||||
Maximum="100"
|
|
||||||
Minimum="0"
|
|
||||||
Orientation="Vertical"
|
|
||||||
ShowProgressText="False"
|
|
||||||
Value="20" />
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Design.PreviewWith>
|
</Design.PreviewWith>
|
||||||
@@ -115,7 +82,7 @@
|
|||||||
<Panel Name="DeterminateRoot" Opacity="1">
|
<Panel Name="DeterminateRoot" Opacity="1">
|
||||||
<Panel.Transitions>
|
<Panel.Transitions>
|
||||||
<Transitions>
|
<Transitions>
|
||||||
<DoubleTransition Property="Opacity" Duration="0:0:0.197" />
|
<DoubleTransition Property="Opacity" Duration="0:0:0.2" />
|
||||||
</Transitions>
|
</Transitions>
|
||||||
</Panel.Transitions>
|
</Panel.Transitions>
|
||||||
<Border
|
<Border
|
||||||
@@ -127,7 +94,7 @@
|
|||||||
<Panel Name="IndeterminateRoot" Opacity="0">
|
<Panel Name="IndeterminateRoot" Opacity="0">
|
||||||
<Panel.Transitions>
|
<Panel.Transitions>
|
||||||
<Transitions>
|
<Transitions>
|
||||||
<DoubleTransition Property="Opacity" Duration="0:0:0.197" />
|
<DoubleTransition Property="Opacity" Duration="0:0:0.2" />
|
||||||
</Transitions>
|
</Transitions>
|
||||||
</Panel.Transitions>
|
</Panel.Transitions>
|
||||||
<Border
|
<Border
|
||||||
@@ -158,7 +125,7 @@
|
|||||||
<TextBlock.Text>
|
<TextBlock.Text>
|
||||||
<MultiBinding Converter="{StaticResource StringFormatConverter}">
|
<MultiBinding Converter="{StaticResource StringFormatConverter}">
|
||||||
<TemplateBinding Property="ProgressTextFormat" />
|
<TemplateBinding Property="ProgressTextFormat" />
|
||||||
<Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
<TemplateBinding Property="Value" />
|
||||||
<TemplateBinding Property="Percentage" />
|
<TemplateBinding Property="Percentage" />
|
||||||
<TemplateBinding Property="Minimum" />
|
<TemplateBinding Property="Minimum" />
|
||||||
<TemplateBinding Property="Maximum" />
|
<TemplateBinding Property="Maximum" />
|
||||||
@@ -191,149 +158,155 @@
|
|||||||
<Style Selector="^.Error">
|
<Style Selector="^.Error">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ProgressBarErrorForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:horizontal /template/ Border#PART_Indicator">
|
|
||||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
||||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:vertical /template/ Border#PART_Indicator">
|
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
||||||
<Setter Property="VerticalAlignment" Value="Top" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:horizontal">
|
<Style Selector="^:horizontal">
|
||||||
<Setter Property="MinWidth" Value="200" />
|
<Setter Property="MinWidth" Value="200" />
|
||||||
<Setter Property="MinHeight" Value="4" />
|
<Setter Property="MinHeight" Value="4" />
|
||||||
|
<Style Selector="^ /template/ Border#PART_Indicator">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#IndeterminateProgressBarIndicator">
|
||||||
|
<Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerWidth}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#IndeterminateProgressBarIndicator2">
|
||||||
|
<Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2Width}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^.Left,^.Top">
|
||||||
|
<Style Selector="^ /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
||||||
|
<Setter Property="Grid.Column" Value="0" />
|
||||||
|
<Setter Property="Grid.Row" Value="1" />
|
||||||
|
<Setter Property="Margin" Value="0 0 16 0" />
|
||||||
|
<Setter Property="MinWidth" Value="45" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#ProgressBarRoot">
|
||||||
|
<Setter Property="MinHeight" Value="4" />
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^.Right,^.Bottom">
|
||||||
|
<Style Selector="^ /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
||||||
|
<Setter Property="Grid.Column" Value="2" />
|
||||||
|
<Setter Property="Grid.Row" Value="1" />
|
||||||
|
<Setter Property="Margin" Value="16 0 0 0" />
|
||||||
|
<Setter Property="MinWidth" Value="45" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#ProgressBarRoot">
|
||||||
|
<Setter Property="MinHeight" Value="4" />
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:vertical">
|
<Style Selector="^:vertical">
|
||||||
|
<Style Selector="^ /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
||||||
|
<Setter Property="LayoutTransform">
|
||||||
|
<RotateTransform Angle="90" />
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
<Setter Property="MinWidth" Value="4" />
|
<Setter Property="MinWidth" Value="4" />
|
||||||
<Setter Property="MinHeight" Value="200" />
|
<Setter Property="MinHeight" Value="200" />
|
||||||
</Style>
|
<Style Selector="^ /template/ Border#PART_Indicator">
|
||||||
<Style Selector="^:vertical /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
<Setter Property="VerticalAlignment" Value="Top" />
|
||||||
<Setter Property="LayoutTransform">
|
|
||||||
<RotateTransform Angle="90" />
|
|
||||||
</Setter>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:indeterminate /template/ Panel#DeterminateRoot">
|
|
||||||
<Setter Property="Opacity" Value="0" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:indeterminate /template/ Panel#IndeterminateRoot">
|
|
||||||
<Setter Property="Opacity" Value="1" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:horizontal:indeterminate /template/ Border#IndeterminateProgressBarIndicator">
|
|
||||||
<Style.Animations>
|
|
||||||
<Animation IterationCount="Infinite" Duration="0:0:2">
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
|
||||||
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationStartPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:1.5">
|
|
||||||
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
|
||||||
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
</Animation>
|
|
||||||
</Style.Animations>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:horizontal:indeterminate /template/ Border#IndeterminateProgressBarIndicator2">
|
|
||||||
<Style.Animations>
|
|
||||||
<Animation IterationCount="Infinite" Duration="0:0:2">
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
|
||||||
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0.75">
|
|
||||||
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
|
||||||
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationEndPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
</Animation>
|
|
||||||
</Style.Animations>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:vertical:indeterminate /template/ Border#IndeterminateProgressBarIndicator">
|
|
||||||
<Style.Animations>
|
|
||||||
<Animation IterationCount="Infinite" Duration="0:0:2">
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
|
||||||
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationStartPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:1.5">
|
|
||||||
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
|
||||||
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
</Animation>
|
|
||||||
</Style.Animations>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:vertical:indeterminate /template/ Border#IndeterminateProgressBarIndicator2">
|
|
||||||
<Style.Animations>
|
|
||||||
<Animation IterationCount="Infinite" Duration="0:0:2">
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
|
||||||
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0.75">
|
|
||||||
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
|
||||||
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationEndPosition}" />
|
|
||||||
</KeyFrame>
|
|
||||||
</Animation>
|
|
||||||
</Style.Animations>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:horizontal /template/ Border#IndeterminateProgressBarIndicator">
|
|
||||||
<Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerWidth}" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:horizontal /template/ Border#IndeterminateProgressBarIndicator2">
|
|
||||||
<Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2Width}" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:vertical /template/ Border#IndeterminateProgressBarIndicator">
|
|
||||||
<Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerWidth}" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:vertical /template/ Border#IndeterminateProgressBarIndicator2">
|
|
||||||
<Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2Width}" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^.Left">
|
|
||||||
<Style Selector="^:horizontal /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
|
||||||
<Setter Property="Grid.Column" Value="0" />
|
|
||||||
<Setter Property="Grid.Row" Value="1" />
|
|
||||||
<Setter Property="Margin" Value="4 0" />
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:vertical /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
<Style Selector="^ /template/ Border#IndeterminateProgressBarIndicator">
|
||||||
<Setter Property="Grid.Column" Value="1" />
|
<Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerWidth}" />
|
||||||
<Setter Property="Grid.Row" Value="0" />
|
|
||||||
<Setter Property="Margin" Value="0 4" />
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:horizontal /template/ Border#ProgressBarRoot">
|
<Style Selector="^ /template/ Border#IndeterminateProgressBarIndicator2">
|
||||||
<Setter Property="MinHeight" Value="4" />
|
<Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2Width}" />
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:vertical /template/ Border#ProgressBarRoot">
|
<Style Selector="^.Left,^.Top">
|
||||||
<Setter Property="MinWidth" Value="4" />
|
<Style Selector="^ /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
||||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
<Setter Property="Grid.Column" Value="1" />
|
||||||
|
<Setter Property="Grid.Row" Value="0" />
|
||||||
|
<Setter Property="Margin" Value="0 0 0 16" />
|
||||||
|
<Setter Property="MinHeight" Value="45" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#ProgressBarRoot">
|
||||||
|
<Setter Property="MinWidth" Value="4" />
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||||
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ TextBlock#PART_ProgressText">
|
<Style Selector="^.Right,^.Bottom">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarOuterTextForeground}" />
|
<Style Selector="^ /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
||||||
|
<Setter Property="Grid.Column" Value="1" />
|
||||||
|
<Setter Property="Grid.Row" Value="2" />
|
||||||
|
<Setter Property="Margin" Value="0 16 0 0" />
|
||||||
|
<Setter Property="MinHeight" Value="45" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#ProgressBarRoot">
|
||||||
|
<Setter Property="MinWidth" Value="4" />
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||||
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^.Right">
|
|
||||||
<Style Selector="^:horizontal /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
<Style Selector="^:indeterminate">
|
||||||
<Setter Property="Grid.Column" Value="2" />
|
<Style Selector="^ /template/ Panel#DeterminateRoot">
|
||||||
<Setter Property="Grid.Row" Value="1" />
|
<Setter Property="Opacity" Value="0" />
|
||||||
<Setter Property="Margin" Value="4 0" />
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:vertical /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
<Style Selector="^ /template/ Panel#IndeterminateRoot">
|
||||||
<Setter Property="Grid.Column" Value="1" />
|
<Setter Property="Opacity" Value="1" />
|
||||||
<Setter Property="Grid.Row" Value="2" />
|
|
||||||
<Setter Property="Margin" Value="0 4" />
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:horizontal /template/ Border#ProgressBarRoot">
|
<Style Selector="^:horizontal /template/ Border#IndeterminateProgressBarIndicator">
|
||||||
<Setter Property="MinHeight" Value="4" />
|
<Style.Animations>
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
<Animation IterationCount="Infinite" Duration="0:0:2">
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
||||||
|
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationStartPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:1.5">
|
||||||
|
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
||||||
|
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
</Animation>
|
||||||
|
</Style.Animations>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:vertical /template/ Border#ProgressBarRoot">
|
<Style Selector="^:horizontal /template/ Border#IndeterminateProgressBarIndicator2">
|
||||||
<Setter Property="MinWidth" Value="4" />
|
<Style.Animations>
|
||||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
<Animation IterationCount="Infinite" Duration="0:0:2">
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
||||||
|
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0.75">
|
||||||
|
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
||||||
|
<Setter Property="TranslateTransform.X" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationEndPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
</Animation>
|
||||||
|
</Style.Animations>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ TextBlock#PART_ProgressText">
|
<Style Selector="^:vertical /template/ Border#IndeterminateProgressBarIndicator">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ProgressBarOuterTextForeground}" />
|
<Style.Animations>
|
||||||
|
<Animation IterationCount="Infinite" Duration="0:0:2">
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
||||||
|
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationStartPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:1.5">
|
||||||
|
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
||||||
|
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.ContainerAnimationEndPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
</Animation>
|
||||||
|
</Style.Animations>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:vertical /template/ Border#IndeterminateProgressBarIndicator2">
|
||||||
|
<Style.Animations>
|
||||||
|
<Animation IterationCount="Infinite" Duration="0:0:2">
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0">
|
||||||
|
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:0.75">
|
||||||
|
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationStartPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
<KeyFrame KeySpline="0.4,0,0.6,1" KeyTime="0:0:2">
|
||||||
|
<Setter Property="TranslateTransform.Y" Value="{Binding $parent[ProgressBar].TemplateSettings.Container2AnimationEndPosition}" />
|
||||||
|
</KeyFrame>
|
||||||
|
</Animation>
|
||||||
|
</Style.Animations>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|||||||
@@ -6,16 +6,12 @@
|
|||||||
Width="400"
|
Width="400"
|
||||||
Height="400"
|
Height="400"
|
||||||
Margin="20">
|
Margin="20">
|
||||||
|
<TabItem Theme="{DynamicResource CardTabItem}" Header="文档" Icon="{StaticResource SemiIconFile}" />
|
||||||
<TabControl TabStripPlacement="Top" Theme="{DynamicResource LineTabControl}">
|
<TabControl TabStripPlacement="Top" Theme="{DynamicResource LineTabControl}">
|
||||||
<TabItem Header="文档">
|
<TabItem Content="Hello 1" Header="文档" Icon="{StaticResource SemiIconFile}" />
|
||||||
<TextBlock Text="Content1" />
|
<TabItem Content="Hello 2" Header="快速起步" Icon="{StaticResource SemiIconGlobe}" />
|
||||||
</TabItem>
|
<TabItem Content="Hello 4" Header="无效" Icon="{StaticResource SemiIconClear}" IsEnabled="False" />
|
||||||
<TabItem Header="快速起步">
|
<TabItem Content="Hello 3" Header="帮助" Icon="{StaticResource SemiIconHelpCircle}" />
|
||||||
<TextBlock Text="Content2" />
|
|
||||||
</TabItem>
|
|
||||||
<TabItem Header="帮助" IsSelected="True">
|
|
||||||
<TextBlock Text="Content3" />
|
|
||||||
</TabItem>
|
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Design.PreviewWith>
|
</Design.PreviewWith>
|
||||||
@@ -25,20 +21,39 @@
|
|||||||
<Setter Property="Background" Value="{DynamicResource TabItemLinePipeBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemLinePipeBackground}" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="TabItem">
|
<ControlTemplate TargetType="TabItem">
|
||||||
<ContentPresenter
|
<Border
|
||||||
Name="PART_HeaderPresenter"
|
Name="PART_RootBorder"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
||||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
Content="{TemplateBinding Header}"
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
<DockPanel HorizontalSpacing="{DynamicResource TabItemIconHeaderSpacing}">
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
<ContentPresenter
|
||||||
FontFamily="{TemplateBinding FontFamily}"
|
Name="PART_IconPresenter"
|
||||||
FontWeight="{TemplateBinding FontWeight}"
|
DockPanel.Dock="Left"
|
||||||
Foreground="{TemplateBinding Foreground}" />
|
Content="{TemplateBinding Icon}"
|
||||||
|
ContentTemplate="{TemplateBinding IconTemplate}"
|
||||||
|
IsVisible="{Binding $self.Content, Converter={x:Static ObjectConverters.IsNotNull}}">
|
||||||
|
<ContentPresenter.DataTemplates>
|
||||||
|
<DataTemplate DataType="Geometry">
|
||||||
|
<PathIcon
|
||||||
|
Theme="{StaticResource InnerPathIcon}"
|
||||||
|
Data="{Binding}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</ContentPresenter.DataTemplates>
|
||||||
|
</ContentPresenter>
|
||||||
|
<ContentPresenter
|
||||||
|
Name="PART_HeaderPresenter"
|
||||||
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
Content="{TemplateBinding Header}"
|
||||||
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||||
|
FontFamily="{TemplateBinding FontFamily}"
|
||||||
|
FontWeight="{TemplateBinding FontWeight}"
|
||||||
|
Foreground="{TemplateBinding Foreground}" />
|
||||||
|
</DockPanel>
|
||||||
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
@@ -46,17 +61,31 @@
|
|||||||
<Setter Property="RecognizesAccessKey" Value="True" />
|
<Setter Property="RecognizesAccessKey" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:selected">
|
||||||
<Setter Property="FontWeight" Value="{DynamicResource TabItemSelectedFontWeight}" />
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource TabItemLineHeaderSelectedForeground}" />
|
<Setter Property="FontWeight" Value="{DynamicResource TabItemSelectedFontWeight}" />
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource TabItemLineHeaderSelectedForeground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource TabItemIconSelectedForeground}" />
|
||||||
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:not(:selected)">
|
<Style Selector="^:not(:selected)">
|
||||||
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pointerover">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource TabItemLineHeaderPointeroverForeground}" />
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter,^ /template/ ContentPresenter#PART_IconPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource TabItemLineHeaderPointeroverForeground}" />
|
||||||
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter,^ /template/ ContentPresenter#PART_IconPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource TabItemHeaderDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
<ControlTheme
|
<ControlTheme
|
||||||
@@ -65,15 +94,15 @@
|
|||||||
TargetType="TabItem">
|
TargetType="TabItem">
|
||||||
<Setter Property="Padding" Value="8 4" />
|
<Setter Property="Padding" Value="8 4" />
|
||||||
|
|
||||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:selected /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipeSelectedBackground}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipeSelectedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:not(:selected)">
|
<Style Selector="^:not(:selected)">
|
||||||
<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pointerover /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePointeroverBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pressed /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pressed /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePressedBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -98,27 +127,27 @@
|
|||||||
x:Key="LineTabItem"
|
x:Key="LineTabItem"
|
||||||
BasedOn="{StaticResource BaseTabItem}"
|
BasedOn="{StaticResource BaseTabItem}"
|
||||||
TargetType="TabItem">
|
TargetType="TabItem">
|
||||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:selected /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipeSelectedBackground}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipeSelectedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^[TabStripPlacement=Left], ^[TabStripPlacement=Right]">
|
<Style Selector="^[TabStripPlacement=Left], ^[TabStripPlacement=Right]">
|
||||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:selected /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemLineHeaderSelectedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemLineHeaderSelectedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:not(:selected)">
|
<Style Selector="^:not(:selected)">
|
||||||
<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pointerover /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePointeroverBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pressed /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pressed /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabItemLinePipePressedBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^[TabStripPlacement=Left], ^[TabStripPlacement=Right]">
|
<Style Selector="^[TabStripPlacement=Left], ^[TabStripPlacement=Right]">
|
||||||
<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pointerover /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemLineHeaderPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemLineHeaderPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pressed /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pressed /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemLineHeaderPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemLineHeaderPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -150,15 +179,15 @@
|
|||||||
TargetType="TabItem">
|
TargetType="TabItem">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TabControlSeparatorBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TabControlSeparatorBorderBrush}" />
|
||||||
|
|
||||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:selected /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemCardHeaderSelectedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemCardHeaderSelectedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:not(:selected)">
|
<Style Selector="^:not(:selected)">
|
||||||
<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pointerover /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemCardHeaderPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemCardHeaderPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pressed /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pressed /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemCardHeaderPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemCardHeaderPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -207,16 +236,20 @@
|
|||||||
TargetType="TabItem">
|
TargetType="TabItem">
|
||||||
<Setter Property="CornerRadius" Value="{DynamicResource SemiBorderRadiusSmall}" />
|
<Setter Property="CornerRadius" Value="{DynamicResource SemiBorderRadiusSmall}" />
|
||||||
|
|
||||||
<Style Selector="^:selected /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:selected">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource TabItemButtonHeaderSelectedForeground}" />
|
<Style Selector="^ /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemButtonHeaderSelectedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemButtonHeaderSelectedBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource TabItemButtonHeaderSelectedForeground}" />
|
||||||
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:not(:selected)">
|
<Style Selector="^:not(:selected)">
|
||||||
<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pointerover /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemButtonHeaderPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemButtonHeaderPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pressed /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:pressed /template/ Border#PART_RootBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TabItemButtonHeaderPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TabItemButtonHeaderPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
@@ -22,6 +22,27 @@
|
|||||||
IsEnabled="{Binding $parent[TextBox].CanPaste}" />
|
IsEnabled="{Binding $parent[TextBox].CanPaste}" />
|
||||||
</MenuFlyout>
|
</MenuFlyout>
|
||||||
|
|
||||||
|
<MenuFlyout
|
||||||
|
x:Key="HorizontalTextBoxContextFlyout"
|
||||||
|
ShowMode="{OnFormFactor Desktop=Standard, Mobile=Transient}"
|
||||||
|
FlyoutPresenterTheme="{StaticResource HorizontalMenuFlyoutPresenter}"
|
||||||
|
ItemContainerTheme="{StaticResource TopLevelMenuItem}">
|
||||||
|
<MenuItem
|
||||||
|
Command="{Binding $parent[TextBox].Cut}"
|
||||||
|
Header="{DynamicResource STRING_MENU_CUT}"
|
||||||
|
IsEnabled="{Binding $parent[TextBox].CanCut}"
|
||||||
|
IsVisible="{Binding $parent[TextBox].CanCut}" />
|
||||||
|
<MenuItem
|
||||||
|
Command="{Binding $parent[TextBox].Copy}"
|
||||||
|
Header="{DynamicResource STRING_MENU_COPY}"
|
||||||
|
IsEnabled="{Binding $parent[TextBox].CanCopy}"
|
||||||
|
IsVisible="{Binding $parent[TextBox].CanCopy}" />
|
||||||
|
<MenuItem
|
||||||
|
Command="{Binding $parent[TextBox].Paste}"
|
||||||
|
Header="{DynamicResource STRING_MENU_PASTE}"
|
||||||
|
IsEnabled="{Binding $parent[TextBox].CanPaste}" />
|
||||||
|
</MenuFlyout>
|
||||||
|
|
||||||
<ControlTheme x:Key="{x:Type TextBox}" TargetType="TextBox">
|
<ControlTheme x:Key="{x:Type TextBox}" TargetType="TextBox">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource TextBoxForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource TextBoxForeground}" />
|
||||||
<Setter Property="PlaceholderForeground" Value="{DynamicResource TextBoxPlaceholderForeground}" />
|
<Setter Property="PlaceholderForeground" Value="{DynamicResource TextBoxPlaceholderForeground}" />
|
||||||
@@ -133,6 +154,10 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
|
<Style Selector="^:touch-mode">
|
||||||
|
<Setter Property="ContextFlyout" Value="{StaticResource HorizontalTextBoxContextFlyout}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:pointerover /template/ Border#PART_ContentPresenterBorder">
|
<Style Selector="^:pointerover /template/ Border#PART_ContentPresenterBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TextBoxPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TextBoxPointeroverBackground}" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxPointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxPointeroverBorderBrush}" />
|
||||||
@@ -304,7 +329,6 @@
|
|||||||
Name="PART_Placeholder"
|
Name="PART_Placeholder"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
Opacity="0.5"
|
|
||||||
Foreground="{TemplateBinding PlaceholderForeground}"
|
Foreground="{TemplateBinding PlaceholderForeground}"
|
||||||
Text="{TemplateBinding PlaceholderText}"
|
Text="{TemplateBinding PlaceholderText}"
|
||||||
TextAlignment="{TemplateBinding TextAlignment}"
|
TextAlignment="{TemplateBinding TextAlignment}"
|
||||||
@@ -368,6 +392,10 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
|
<Style Selector="^:touch-mode">
|
||||||
|
<Setter Property="ContextFlyout" Value="{StaticResource HorizontalTextBoxContextFlyout}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:pointerover /template/ Border#PART_ContentPresenterBorder">
|
<Style Selector="^:pointerover /template/ Border#PART_ContentPresenterBorder">
|
||||||
<Setter Property="Background" Value="{DynamicResource TextBoxPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TextBoxPointeroverBackground}" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxPointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxPointeroverBorderBrush}" />
|
||||||
@@ -526,7 +554,6 @@
|
|||||||
Name="PART_Placeholder"
|
Name="PART_Placeholder"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
Opacity="0.5"
|
|
||||||
Foreground="{TemplateBinding PlaceholderForeground}"
|
Foreground="{TemplateBinding PlaceholderForeground}"
|
||||||
Text="{TemplateBinding PlaceholderText}"
|
Text="{TemplateBinding PlaceholderText}"
|
||||||
TextAlignment="{TemplateBinding TextAlignment}"
|
TextAlignment="{TemplateBinding TextAlignment}"
|
||||||
@@ -573,6 +600,10 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
|
<Style Selector="^:touch-mode">
|
||||||
|
<Setter Property="ContextFlyout" Value="{StaticResource HorizontalTextBoxContextFlyout}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource TextBoxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource TextBoxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
<Setter Property="Padding" Value="{StaticResource CaptionButtonPadding}" />
|
<Setter Property="Padding" Value="{StaticResource CaptionButtonPadding}" />
|
||||||
<Setter Property="Width" Value="{StaticResource CaptionButtonWidth}" />
|
<Setter Property="Width" Value="{StaticResource CaptionButtonWidth}" />
|
||||||
<Setter Property="Height" Value="{StaticResource CaptionButtonHeight}" />
|
<Setter Property="Height" Value="{StaticResource CaptionButtonHeight}" />
|
||||||
<Setter Property="Cursor" Value="Hand" />
|
|
||||||
<Setter Property="WindowDecorationProperties.ElementRole" Value="DecorationsElement" />
|
<Setter Property="WindowDecorationProperties.ElementRole" Value="DecorationsElement" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
@@ -39,6 +38,10 @@
|
|||||||
<Style Selector="^:pressed">
|
<Style Selector="^:pressed">
|
||||||
<Setter Property="Background" Value="{DynamicResource CaptionButtonPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CaptionButtonPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource CaptionButtonDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
<ControlTheme x:Key="{x:Type WindowDrawnDecorations}" TargetType="WindowDrawnDecorations">
|
<ControlTheme x:Key="{x:Type WindowDrawnDecorations}" TargetType="WindowDrawnDecorations">
|
||||||
@@ -50,14 +53,13 @@
|
|||||||
<WindowDrawnDecorationsContent>
|
<WindowDrawnDecorationsContent>
|
||||||
<WindowDrawnDecorationsContent.Underlay>
|
<WindowDrawnDecorationsContent.Underlay>
|
||||||
<!-- Full-size: covers shadow area + frame + behind client area -->
|
<!-- Full-size: covers shadow area + frame + behind client area -->
|
||||||
<Panel>
|
<Panel Name="PART_UnderlayWrapper">
|
||||||
<Border
|
<Border
|
||||||
Name="PART_WindowBorder"
|
Name="PART_WindowBorder"
|
||||||
Margin="{TemplateBinding ShadowThickness}"
|
|
||||||
Background="{DynamicResource WindowBackground}"
|
Background="{DynamicResource WindowBackground}"
|
||||||
BorderBrush="{DynamicResource WindowBorderBrush}"
|
BorderBrush="{DynamicResource WindowBorderBrush}"
|
||||||
BorderThickness="1"
|
BorderThickness="{TemplateBinding FrameThickness}"
|
||||||
BoxShadow="{DynamicResource WindowBorderShadow}" />
|
IsHitTestVisible="False" />
|
||||||
<!-- Titlebar: background, title text, and drag area live in underlay -->
|
<!-- Titlebar: background, title text, and drag area live in underlay -->
|
||||||
<Panel Name="PART_TitleBar"
|
<Panel Name="PART_TitleBar"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
@@ -81,7 +83,6 @@
|
|||||||
<TextBlock
|
<TextBlock
|
||||||
Margin="12,0,0,0"
|
Margin="12,0,0,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
FontSize="12"
|
|
||||||
Text="{TemplateBinding Title}" />
|
Text="{TemplateBinding Title}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
@@ -90,9 +91,7 @@
|
|||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
IsVisible="{TemplateBinding HasTitleBar}"
|
IsVisible="{TemplateBinding HasTitleBar}"
|
||||||
Orientation="Horizontal"
|
Orientation="Horizontal">
|
||||||
Spacing="2"
|
|
||||||
TextElement.FontSize="10">
|
|
||||||
<Button
|
<Button
|
||||||
Name="PART_FullScreenButton"
|
Name="PART_FullScreenButton"
|
||||||
Theme="{StaticResource CaptionButton}"
|
Theme="{StaticResource CaptionButton}"
|
||||||
@@ -120,8 +119,9 @@
|
|||||||
<WindowDrawnDecorationsContent.FullscreenPopover>
|
<WindowDrawnDecorationsContent.FullscreenPopover>
|
||||||
<!-- Shown on hover at top edge in fullscreen -->
|
<!-- Shown on hover at top edge in fullscreen -->
|
||||||
<DockPanel
|
<DockPanel
|
||||||
Height="{TemplateBinding TitleBarHeight}"
|
Height="{TemplateBinding DefaultTitleBarHeight}"
|
||||||
Background="{DynamicResource TitleBarBackground}"
|
Background="{DynamicResource TitleBarBackground}"
|
||||||
|
VerticalAlignment="Top"
|
||||||
WindowDecorationProperties.ElementRole="TitleBar">
|
WindowDecorationProperties.ElementRole="TitleBar">
|
||||||
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
|
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
|
||||||
<Button
|
<Button
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
WindowDecorationProperties.ElementRole="CloseButton" />
|
WindowDecorationProperties.ElementRole="CloseButton" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Margin="12,0"
|
Margin="12,0,0,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Text="{TemplateBinding Title}" />
|
Text="{TemplateBinding Title}" />
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
@@ -187,6 +187,20 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<!-- Hide caption buttons when the platform does not support the action -->
|
||||||
|
<Style Selector="^:not(:has-minimize) /template/ Button#PART_MinimizeButton">
|
||||||
|
<Setter Property="IsVisible" Value="False"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:not(:has-maximize) /template/ Button#PART_MaximizeButton">
|
||||||
|
<Setter Property="IsVisible" Value="False"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:not(:has-fullscreen) /template/ Button#PART_FullScreenButton">
|
||||||
|
<Setter Property="IsVisible" Value="False"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:not(:has-fullscreen) /template/ Button#PART_PopoverFullScreenButton">
|
||||||
|
<Setter Property="IsVisible" Value="False"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<!-- Fullscreen: hide overlay and titlebar (popover takes over) -->
|
<!-- Fullscreen: hide overlay and titlebar (popover takes over) -->
|
||||||
<Style Selector="^:fullscreen">
|
<Style Selector="^:fullscreen">
|
||||||
<Style Selector="^ /template/ Panel#PART_TitleTextPanel">
|
<Style Selector="^ /template/ Panel#PART_TitleTextPanel">
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
|
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
|
||||||
<Version>12.0.0-rc1</Version>
|
<Version>12.0.0-rc2</Version>
|
||||||
<PackageReleaseNotes>Update to Semi.Avalonia 12.0.0-rc1</PackageReleaseNotes>
|
<PackageReleaseNotes>Update to Semi.Avalonia 12.0.0-rc2</PackageReleaseNotes>
|
||||||
<Title>Semi.Avalonia</Title>
|
<Title>Semi.Avalonia</Title>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<!-- AppBarButton / AppBarToggleButton -->
|
<!-- CommandBarButton / CommandBarToggleButton -->
|
||||||
<SolidColorBrush x:Key="AppBarButtonBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CommandBarButtonBackground" Color="Transparent" />
|
||||||
<StaticResource x:Key="AppBarButtonForeground" ResourceKey="SemiColorText0" />
|
<StaticResource x:Key="CommandBarButtonForeground" ResourceKey="SemiColorText0" />
|
||||||
<StaticResource x:Key="AppBarButtonPointeroverBackground" ResourceKey="SemiColorFill0" />
|
<StaticResource x:Key="CommandBarButtonPointeroverBackground" ResourceKey="SemiColorFill0" />
|
||||||
<StaticResource x:Key="AppBarButtonPressedBackground" ResourceKey="SemiColorFill1" />
|
<StaticResource x:Key="CommandBarButtonPressedBackground" ResourceKey="SemiColorFill1" />
|
||||||
<StaticResource x:Key="AppBarButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
<StaticResource x:Key="CommandBarButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
||||||
<!-- AppBarToggleButton checked state -->
|
<!-- CommandBarToggleButton checked state -->
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedForeground" ResourceKey="SemiColorPrimary" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedForeground" ResourceKey="SemiColorPrimary" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedBackground" ResourceKey="SemiColorPrimaryLight" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedBackground" ResourceKey="SemiColorPrimaryLight" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedPointeroverBackground" ResourceKey="SemiColorPrimaryLightPointerover" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedPointeroverBackground" ResourceKey="SemiColorPrimaryLightPointerover" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedPressedBackground" ResourceKey="SemiColorPrimaryLightActive" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedPressedBackground" ResourceKey="SemiColorPrimaryLightActive" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedDisabledForeground" ResourceKey="SemiColorPrimaryDisabled" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedDisabledForeground" ResourceKey="SemiColorPrimaryDisabled" />
|
||||||
<!-- AppBarSeparator -->
|
<!-- CommandBarSeparator -->
|
||||||
<StaticResource x:Key="AppBarSeparatorBackground" ResourceKey="SemiColorBorder" />
|
<StaticResource x:Key="CommandBarSeparatorBackground" ResourceKey="SemiColorBorder" />
|
||||||
<!-- CommandBar -->
|
<!-- CommandBar -->
|
||||||
<StaticResource x:Key="CommandBarBackground" ResourceKey="SemiColorBackground1" />
|
<StaticResource x:Key="CommandBarBackground" ResourceKey="SemiColorBackground1" />
|
||||||
<StaticResource x:Key="CommandBarForeground" ResourceKey="SemiColorText0" />
|
<StaticResource x:Key="CommandBarForeground" ResourceKey="SemiColorText0" />
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<StaticResource x:Key="ProgressBarIndicatorBrush" ResourceKey="SemiColorPrimary" />
|
<StaticResource x:Key="ProgressBarIndicatorBrush" ResourceKey="SemiColorPrimary" />
|
||||||
<StaticResource x:Key="ProgressBarBackground" ResourceKey="SemiColorFill0" />
|
<StaticResource x:Key="ProgressBarBackground" ResourceKey="SemiColorFill0" />
|
||||||
<StaticResource x:Key="ProgressBarTextForeground" ResourceKey="SemiColorText0" />
|
<StaticResource x:Key="ProgressBarTextForeground" ResourceKey="SemiColorText0" />
|
||||||
<StaticResource x:Key="ProgressBarOuterTextForeground" ResourceKey="SemiColorText0" />
|
|
||||||
<SolidColorBrush x:Key="ProgressBarRootBorderBrush" Color="Transparent" />
|
<SolidColorBrush x:Key="ProgressBarRootBorderBrush" Color="Transparent" />
|
||||||
<StaticResource x:Key="ProgressBarPrimaryForeground" ResourceKey="SemiColorPrimary" />
|
<StaticResource x:Key="ProgressBarPrimaryForeground" ResourceKey="SemiColorPrimary" />
|
||||||
<StaticResource x:Key="ProgressBarSecondaryForeground" ResourceKey="SemiColorSecondary" />
|
<StaticResource x:Key="ProgressBarSecondaryForeground" ResourceKey="SemiColorSecondary" />
|
||||||
|
|||||||
@@ -19,4 +19,7 @@
|
|||||||
<StaticResource x:Key="TabItemButtonHeaderSelectedBackground" ResourceKey="SemiColorPrimaryLight" />
|
<StaticResource x:Key="TabItemButtonHeaderSelectedBackground" ResourceKey="SemiColorPrimaryLight" />
|
||||||
<StaticResource x:Key="TabItemButtonHeaderPointeroverBackground" ResourceKey="SemiColorFill0" />
|
<StaticResource x:Key="TabItemButtonHeaderPointeroverBackground" ResourceKey="SemiColorFill0" />
|
||||||
<StaticResource x:Key="TabItemButtonHeaderPressedBackground" ResourceKey="SemiColorFill1" />
|
<StaticResource x:Key="TabItemButtonHeaderPressedBackground" ResourceKey="SemiColorFill1" />
|
||||||
|
|
||||||
|
<StaticResource x:Key="TabItemIconSelectedForeground" ResourceKey="SemiColorPrimary" />
|
||||||
|
<StaticResource x:Key="TabItemHeaderDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -7,5 +7,6 @@
|
|||||||
<StaticResource x:Key="CaptionButtonCloseForeground" ResourceKey="SemiColorWhite" />
|
<StaticResource x:Key="CaptionButtonCloseForeground" ResourceKey="SemiColorWhite" />
|
||||||
<StaticResource x:Key="CaptionButtonClosePointeroverBackground" ResourceKey="SemiColorDangerPointerover" />
|
<StaticResource x:Key="CaptionButtonClosePointeroverBackground" ResourceKey="SemiColorDangerPointerover" />
|
||||||
<StaticResource x:Key="CaptionButtonClosePressedBackground" ResourceKey="SemiColorDangerActive" />
|
<StaticResource x:Key="CaptionButtonClosePressedBackground" ResourceKey="SemiColorDangerActive" />
|
||||||
<StaticResource x:Key="CaptionButtonForeground" ResourceKey="SemiColorText2" />
|
<StaticResource x:Key="CaptionButtonForeground" ResourceKey="SemiColorText1" />
|
||||||
|
<StaticResource x:Key="CaptionButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<!-- AppBarButton / AppBarToggleButton -->
|
<!-- CommandBarButton / CommandBarToggleButton -->
|
||||||
<SolidColorBrush x:Key="AppBarButtonBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CommandBarButtonBackground" Color="Transparent" />
|
||||||
<StaticResource x:Key="AppBarButtonForeground" ResourceKey="SemiColorWindowText" />
|
<StaticResource x:Key="CommandBarButtonForeground" ResourceKey="SemiColorWindowText" />
|
||||||
<StaticResource x:Key="AppBarButtonPointeroverBackground" ResourceKey="SemiColorHighlight" />
|
<StaticResource x:Key="CommandBarButtonPointeroverBackground" ResourceKey="SemiColorHighlight" />
|
||||||
<StaticResource x:Key="AppBarButtonPressedBackground" ResourceKey="SemiColorHighlight" />
|
<StaticResource x:Key="CommandBarButtonPressedBackground" ResourceKey="SemiColorHighlight" />
|
||||||
<StaticResource x:Key="AppBarButtonDisabledForeground" ResourceKey="SemiColorGrayText" />
|
<StaticResource x:Key="CommandBarButtonDisabledForeground" ResourceKey="SemiColorGrayText" />
|
||||||
<!-- AppBarToggleButton checked state -->
|
<!-- CommandBarToggleButton checked state -->
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedForeground" ResourceKey="SemiColorHighlightText" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedForeground" ResourceKey="SemiColorHighlightText" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedBackground" ResourceKey="SemiColorHighlight" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedBackground" ResourceKey="SemiColorHighlight" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedPointeroverBackground" ResourceKey="SemiColorButtonText" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedPointeroverBackground" ResourceKey="SemiColorButtonText" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedPressedBackground" ResourceKey="SemiColorButtonFace" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedPressedBackground" ResourceKey="SemiColorButtonFace" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedDisabledForeground" ResourceKey="SemiColorGrayText" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedDisabledForeground" ResourceKey="SemiColorGrayText" />
|
||||||
<!-- AppBarSeparator -->
|
<!-- CommandBarSeparator -->
|
||||||
<StaticResource x:Key="AppBarSeparatorBackground" ResourceKey="SemiColorWindowText" />
|
<StaticResource x:Key="CommandBarSeparatorBackground" ResourceKey="SemiColorWindowText" />
|
||||||
<!-- CommandBar -->
|
<!-- CommandBar -->
|
||||||
<StaticResource x:Key="CommandBarBackground" ResourceKey="SemiColorWindow" />
|
<StaticResource x:Key="CommandBarBackground" ResourceKey="SemiColorWindow" />
|
||||||
<StaticResource x:Key="CommandBarForeground" ResourceKey="SemiColorWindowText" />
|
<StaticResource x:Key="CommandBarForeground" ResourceKey="SemiColorWindowText" />
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<StaticResource x:Key="ProgressBarIndicatorBrush" ResourceKey="SemiColorHighlight" />
|
<StaticResource x:Key="ProgressBarIndicatorBrush" ResourceKey="SemiColorHighlight" />
|
||||||
<StaticResource x:Key="ProgressBarBackground" ResourceKey="SemiColorHighlightText" />
|
<StaticResource x:Key="ProgressBarBackground" ResourceKey="SemiColorHighlightText" />
|
||||||
<StaticResource x:Key="ProgressBarTextForeground" ResourceKey="SemiColorWindowText" />
|
<StaticResource x:Key="ProgressBarTextForeground" ResourceKey="SemiColorWindowText" />
|
||||||
<StaticResource x:Key="ProgressBarOuterTextForeground" ResourceKey="SemiColorWindowText" />
|
|
||||||
<StaticResource x:Key="ProgressBarRootBorderBrush" ResourceKey="SemiColorWindowText" />
|
<StaticResource x:Key="ProgressBarRootBorderBrush" ResourceKey="SemiColorWindowText" />
|
||||||
<StaticResource x:Key="ProgressBarPrimaryForeground" ResourceKey="SemiColorHighlight" />
|
<StaticResource x:Key="ProgressBarPrimaryForeground" ResourceKey="SemiColorHighlight" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -19,4 +19,7 @@
|
|||||||
<StaticResource x:Key="TabItemButtonHeaderSelectedBackground" ResourceKey="SemiColorHighlightText" />
|
<StaticResource x:Key="TabItemButtonHeaderSelectedBackground" ResourceKey="SemiColorHighlightText" />
|
||||||
<StaticResource x:Key="TabItemButtonHeaderPointeroverBackground" ResourceKey="SemiColorHighlightText" />
|
<StaticResource x:Key="TabItemButtonHeaderPointeroverBackground" ResourceKey="SemiColorHighlightText" />
|
||||||
<StaticResource x:Key="TabItemButtonHeaderPressedBackground" ResourceKey="SemiColorHighlightText" />
|
<StaticResource x:Key="TabItemButtonHeaderPressedBackground" ResourceKey="SemiColorHighlightText" />
|
||||||
|
|
||||||
|
<StaticResource x:Key="TabItemIconSelectedForeground" ResourceKey="SemiColorHighlight" />
|
||||||
|
<StaticResource x:Key="TabItemHeaderDisabledForeground" ResourceKey="SemiColorGrayText" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -7,4 +7,5 @@
|
|||||||
<StaticResource x:Key="CaptionButtonClosePointeroverBackground" ResourceKey="SemiColorHotlight" />
|
<StaticResource x:Key="CaptionButtonClosePointeroverBackground" ResourceKey="SemiColorHotlight" />
|
||||||
<StaticResource x:Key="CaptionButtonClosePressedBackground" ResourceKey="SemiColorHotlight" />
|
<StaticResource x:Key="CaptionButtonClosePressedBackground" ResourceKey="SemiColorHotlight" />
|
||||||
<StaticResource x:Key="CaptionButtonForeground" ResourceKey="SemiColorWindowText" />
|
<StaticResource x:Key="CaptionButtonForeground" ResourceKey="SemiColorWindowText" />
|
||||||
|
<StaticResource x:Key="CaptionButtonDisabledForeground" ResourceKey="SemiColorGrayText" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<!-- AppBarButton / AppBarToggleButton -->
|
<!-- CommandBarButton / CommandBarToggleButton -->
|
||||||
<SolidColorBrush x:Key="AppBarButtonBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CommandBarButtonBackground" Color="Transparent" />
|
||||||
<StaticResource x:Key="AppBarButtonForeground" ResourceKey="SemiColorText0" />
|
<StaticResource x:Key="CommandBarButtonForeground" ResourceKey="SemiColorText0" />
|
||||||
<StaticResource x:Key="AppBarButtonPointeroverBackground" ResourceKey="SemiColorFill0" />
|
<StaticResource x:Key="CommandBarButtonPointeroverBackground" ResourceKey="SemiColorFill0" />
|
||||||
<StaticResource x:Key="AppBarButtonPressedBackground" ResourceKey="SemiColorFill1" />
|
<StaticResource x:Key="CommandBarButtonPressedBackground" ResourceKey="SemiColorFill1" />
|
||||||
<StaticResource x:Key="AppBarButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
<StaticResource x:Key="CommandBarButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
||||||
<!-- AppBarToggleButton checked state -->
|
<!-- CommandBarToggleButton checked state -->
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedForeground" ResourceKey="SemiColorPrimary" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedForeground" ResourceKey="SemiColorPrimary" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedBackground" ResourceKey="SemiColorPrimaryLight" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedBackground" ResourceKey="SemiColorPrimaryLight" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedPointeroverBackground" ResourceKey="SemiColorPrimaryLightPointerover" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedPointeroverBackground" ResourceKey="SemiColorPrimaryLightPointerover" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedPressedBackground" ResourceKey="SemiColorPrimaryLightActive" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedPressedBackground" ResourceKey="SemiColorPrimaryLightActive" />
|
||||||
<StaticResource x:Key="AppBarToggleButtonCheckedDisabledForeground" ResourceKey="SemiColorPrimaryDisabled" />
|
<StaticResource x:Key="CommandBarToggleButtonCheckedDisabledForeground" ResourceKey="SemiColorPrimaryDisabled" />
|
||||||
<!-- AppBarSeparator -->
|
<!-- CommandBarSeparator -->
|
||||||
<StaticResource x:Key="AppBarSeparatorBackground" ResourceKey="SemiColorBorder" />
|
<StaticResource x:Key="CommandBarSeparatorBackground" ResourceKey="SemiColorBorder" />
|
||||||
<!-- CommandBar -->
|
<!-- CommandBar -->
|
||||||
<StaticResource x:Key="CommandBarBackground" ResourceKey="SemiColorBackground1" />
|
<StaticResource x:Key="CommandBarBackground" ResourceKey="SemiColorBackground1" />
|
||||||
<StaticResource x:Key="CommandBarForeground" ResourceKey="SemiColorText0" />
|
<StaticResource x:Key="CommandBarForeground" ResourceKey="SemiColorText0" />
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<StaticResource x:Key="ProgressBarIndicatorBrush" ResourceKey="SemiColorPrimary" />
|
<StaticResource x:Key="ProgressBarIndicatorBrush" ResourceKey="SemiColorPrimary" />
|
||||||
<StaticResource x:Key="ProgressBarBackground" ResourceKey="SemiColorFill0" />
|
<StaticResource x:Key="ProgressBarBackground" ResourceKey="SemiColorFill0" />
|
||||||
<StaticResource x:Key="ProgressBarTextForeground" ResourceKey="SemiColorText0" />
|
<StaticResource x:Key="ProgressBarTextForeground" ResourceKey="SemiColorText0" />
|
||||||
<StaticResource x:Key="ProgressBarOuterTextForeground" ResourceKey="SemiColorText0" />
|
|
||||||
<SolidColorBrush x:Key="ProgressBarRootBorderBrush" Color="Transparent" />
|
<SolidColorBrush x:Key="ProgressBarRootBorderBrush" Color="Transparent" />
|
||||||
<StaticResource x:Key="ProgressBarPrimaryForeground" ResourceKey="SemiColorPrimary" />
|
<StaticResource x:Key="ProgressBarPrimaryForeground" ResourceKey="SemiColorPrimary" />
|
||||||
<StaticResource x:Key="ProgressBarSecondaryForeground" ResourceKey="SemiColorSecondary" />
|
<StaticResource x:Key="ProgressBarSecondaryForeground" ResourceKey="SemiColorSecondary" />
|
||||||
|
|||||||
@@ -19,4 +19,7 @@
|
|||||||
<StaticResource x:Key="TabItemButtonHeaderSelectedBackground" ResourceKey="SemiColorPrimaryLight" />
|
<StaticResource x:Key="TabItemButtonHeaderSelectedBackground" ResourceKey="SemiColorPrimaryLight" />
|
||||||
<StaticResource x:Key="TabItemButtonHeaderPointeroverBackground" ResourceKey="SemiColorFill0" />
|
<StaticResource x:Key="TabItemButtonHeaderPointeroverBackground" ResourceKey="SemiColorFill0" />
|
||||||
<StaticResource x:Key="TabItemButtonHeaderPressedBackground" ResourceKey="SemiColorFill1" />
|
<StaticResource x:Key="TabItemButtonHeaderPressedBackground" ResourceKey="SemiColorFill1" />
|
||||||
|
|
||||||
|
<StaticResource x:Key="TabItemIconSelectedForeground" ResourceKey="SemiColorPrimary" />
|
||||||
|
<StaticResource x:Key="TabItemHeaderDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -7,5 +7,6 @@
|
|||||||
<StaticResource x:Key="CaptionButtonCloseForeground" ResourceKey="SemiColorWhite" />
|
<StaticResource x:Key="CaptionButtonCloseForeground" ResourceKey="SemiColorWhite" />
|
||||||
<StaticResource x:Key="CaptionButtonClosePointeroverBackground" ResourceKey="SemiColorDangerPointerover" />
|
<StaticResource x:Key="CaptionButtonClosePointeroverBackground" ResourceKey="SemiColorDangerPointerover" />
|
||||||
<StaticResource x:Key="CaptionButtonClosePressedBackground" ResourceKey="SemiColorDangerActive" />
|
<StaticResource x:Key="CaptionButtonClosePressedBackground" ResourceKey="SemiColorDangerActive" />
|
||||||
<StaticResource x:Key="CaptionButtonForeground" ResourceKey="SemiColorText2" />
|
<StaticResource x:Key="CaptionButtonForeground" ResourceKey="SemiColorText1" />
|
||||||
|
<StaticResource x:Key="CaptionButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -3,4 +3,10 @@
|
|||||||
<StaticResource x:Key="ButtonSpinnerDecreaseButtonGlyph" ResourceKey="SemiIconChevronDown" />
|
<StaticResource x:Key="ButtonSpinnerDecreaseButtonGlyph" ResourceKey="SemiIconChevronDown" />
|
||||||
<StaticResource x:Key="ButtonSpinnerButtonGroupCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
<StaticResource x:Key="ButtonSpinnerButtonGroupCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
||||||
<StaticResource x:Key="ButtonSpinnerButtonGroupBorderThickness" ResourceKey="SemiBorderThicknessControl" />
|
<StaticResource x:Key="ButtonSpinnerButtonGroupBorderThickness" ResourceKey="SemiBorderThicknessControl" />
|
||||||
|
|
||||||
|
<StaticResource x:Key="SplitButtonSpinnerIncreaseButtonGlyph" ResourceKey="SemiIconPlus" />
|
||||||
|
<StaticResource x:Key="SplitButtonSpinnerDecreaseButtonGlyph" ResourceKey="SemiIconMinus" />
|
||||||
|
<CornerRadius x:Key="SplitButtonSpinnerLeftButtonCornerRadius">3 0 0 3</CornerRadius>
|
||||||
|
<CornerRadius x:Key="SplitButtonSpinnerRightButtonCornerRadius">0 3 3 0</CornerRadius>
|
||||||
|
<Thickness x:Key="SplitButtonSpinnerButtonPadding">8 0</Thickness>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -1,20 +1,20 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<!-- AppBarButton / AppBarToggleButton -->
|
<!-- CommandBarButton / CommandBarToggleButton -->
|
||||||
<x:Double x:Key="AppBarButtonWidth">64</x:Double>
|
<x:Double x:Key="CommandBarButtonWidth">64</x:Double>
|
||||||
<x:Double x:Key="AppBarButtonCompactWidth">40</x:Double>
|
<x:Double x:Key="CommandBarButtonCompactWidth">40</x:Double>
|
||||||
<x:Double x:Key="AppBarButtonMinHeight">40</x:Double>
|
<x:Double x:Key="CommandBarButtonMinHeight">40</x:Double>
|
||||||
<Thickness x:Key="AppBarButtonPadding">8 4</Thickness>
|
<Thickness x:Key="CommandBarButtonPadding">8 4</Thickness>
|
||||||
<x:Double x:Key="AppBarButtonPanelSpacing">4</x:Double>
|
<x:Double x:Key="CommandBarButtonPanelSpacing">4</x:Double>
|
||||||
<StaticResource x:Key="AppBarButtonCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
<StaticResource x:Key="CommandBarButtonCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
||||||
<StaticResource x:Key="AppBarButtonLabelFontSize" ResourceKey="SemiFontSizeSmall" />
|
<StaticResource x:Key="CommandBarButtonLabelFontSize" ResourceKey="SemiFontSizeSmall" />
|
||||||
<x:Double x:Key="AppBarButtonOverflowMinHeight">36</x:Double>
|
<x:Double x:Key="CommandBarButtonOverflowMinHeight">36</x:Double>
|
||||||
<Thickness x:Key="AppBarButtonOverflowPadding">12 6</Thickness>
|
<Thickness x:Key="CommandBarButtonOverflowPadding">12 6</Thickness>
|
||||||
<!-- AppBarSeparator -->
|
<!-- CommandBarSeparator -->
|
||||||
<x:Double x:Key="AppBarSeparatorWidth">1</x:Double>
|
<x:Double x:Key="CommandBarSeparatorWidth">1</x:Double>
|
||||||
<x:Double x:Key="AppBarSeparatorMinHeight">24</x:Double>
|
<x:Double x:Key="CommandBarSeparatorMinHeight">24</x:Double>
|
||||||
<Thickness x:Key="AppBarSeparatorMargin">8 4</Thickness>
|
<Thickness x:Key="CommandBarSeparatorMargin">8 4</Thickness>
|
||||||
<x:Double x:Key="AppBarSeparatorOverflowHeight">1</x:Double>
|
<x:Double x:Key="CommandBarSeparatorOverflowHeight">1</x:Double>
|
||||||
<Thickness x:Key="AppBarSeparatorOverflowMargin">4 4</Thickness>
|
<Thickness x:Key="CommandBarSeparatorOverflowMargin">4 4</Thickness>
|
||||||
<!-- CommandBar -->
|
<!-- CommandBar -->
|
||||||
<x:Double x:Key="CommandBarMinHeight">48</x:Double>
|
<x:Double x:Key="CommandBarMinHeight">48</x:Double>
|
||||||
<Thickness x:Key="CommandBarPadding">4 0</Thickness>
|
<Thickness x:Key="CommandBarPadding">4 0</Thickness>
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
<x:Double x:Key="FlyoutMaxWidth">600</x:Double>
|
<x:Double x:Key="FlyoutMaxWidth">600</x:Double>
|
||||||
<StaticResource x:Key="FlyoutCornerRadius" ResourceKey="SemiBorderRadiusMedium" />
|
<StaticResource x:Key="FlyoutCornerRadius" ResourceKey="SemiBorderRadiusMedium" />
|
||||||
<StaticResource x:Key="FlyoutPadding" ResourceKey="SemiThicknessTight" />
|
<StaticResource x:Key="FlyoutPadding" ResourceKey="SemiThicknessTight" />
|
||||||
|
<StaticResource x:Key="HorizontalMenuFlyoutThemeMinWidth" ResourceKey="SemiSpacingExtraLoose" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<StaticResource x:Key="TabItemIconHeaderSpacing" ResourceKey="SemiSpacingTight" />
|
||||||
<StaticResource x:Key="TabItemSelectedFontWeight" ResourceKey="SemiFontWeightBold" />
|
<StaticResource x:Key="TabItemSelectedFontWeight" ResourceKey="SemiFontWeightBold" />
|
||||||
<StaticResource x:Key="TabItemCardDefaultHeight" ResourceKey="SemiHeightControlDefault" />
|
<StaticResource x:Key="TabItemCardDefaultHeight" ResourceKey="SemiHeightControlDefault" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -1,10 +1,15 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<StreamGeometry x:Key="WindowCloseIconGlyph">M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z</StreamGeometry>
|
<StaticResource x:Key="WindowCloseIconGlyph" ResourceKey="SemiIconClose" />
|
||||||
<StreamGeometry x:Key="WindowMaximizeGlyph">M4,4H20V20H4V4M6,8V18H18V8H6Z</StreamGeometry>
|
<StaticResource x:Key="WindowMinimizeGlyph" ResourceKey="SemiIconMinus" />
|
||||||
<StreamGeometry x:Key="WindowMinimizeGlyph">M20,14H4V10H20</StreamGeometry>
|
<StaticResource x:Key="WindowExpandGlyph" ResourceKey="SemiIconExpand" />
|
||||||
<StreamGeometry x:Key="WindowRestoreGlyph">M4,8H8V4H20V16H16V20H4V8M16,8V14H18V6H10V8H16M6,12V18H14V12H6Z</StreamGeometry>
|
<StaticResource x:Key="WindowCollapseGlyph" ResourceKey="SemiIconShrink" />
|
||||||
<StreamGeometry x:Key="WindowExpandGlyph">M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z</StreamGeometry>
|
|
||||||
<StreamGeometry x:Key="WindowCollapseGlyph">M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z</StreamGeometry>
|
<StreamGeometry x:Key="WindowMaximizeGlyph">
|
||||||
|
M5 5.5A.5.5 0 015.5 5h13a.5.5 0 01.5.5v13a.5.5 0 01-.5.5H5.5A.5.5 0 015 18.5V5.5Zm-3 0v13A3.5 3.5 0 005.5 22h13A3.5 3.5 0 0022 18.5V5A3.5 3.5 0 0018.5 2H5.5A3.5 3.5 0 002 5.5Z
|
||||||
|
</StreamGeometry>
|
||||||
|
<StreamGeometry x:Key="WindowRestoreGlyph">
|
||||||
|
M3 9A2 2 0 015 7H15a2 2 0 012 2V19a2 2 0 01-2 2H5A2 2 0 013 19V9Zm3 1v8h8V10H6ZM7 4c0-1.1.9-2 2-2h11a2 2 0 012 2v11a2 2 0 01-2 2h-1V5H7V4Z
|
||||||
|
</StreamGeometry>
|
||||||
|
|
||||||
<StaticResource x:Key="CaptionButtonCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
<StaticResource x:Key="CaptionButtonCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
||||||
<StaticResource x:Key="CaptionButtonWidth" ResourceKey="SemiSpacingExtraLoose" />
|
<StaticResource x:Key="CaptionButtonWidth" ResourceKey="SemiSpacingExtraLoose" />
|
||||||
|
|||||||
Reference in New Issue
Block a user