重构样式
This commit is contained in:
@@ -8,28 +8,11 @@
|
|||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="/Resources/Skins/Light.xaml"/>
|
|
||||||
<ResourceDictionary Source="/Resources/Theme.xaml"/>
|
|
||||||
<ResourceDictionary Source="/Resources/Geometries.xaml"/>
|
<ResourceDictionary Source="/Resources/Geometries.xaml"/>
|
||||||
<ResourceDictionary Source="/Resources/Strings/zh.xaml"/>
|
<ResourceDictionary Source="/Resources/Strings/zh.xaml"/>
|
||||||
|
<ResourceDictionary Source="/Resources/Skins/Light.xaml"/>
|
||||||
|
<ResourceDictionary Source="/Resources/Theme.xaml"/>
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
<Style x:Key="MyToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToggleButtonSwitch}">
|
|
||||||
<Setter Property="hc:VisualElement.HighlightBrush" Value="{DynamicResource DarkSuccessBrush}"/>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style TargetType="{x:Type ListBox}" BasedOn="{StaticResource ListBoxBaseStyle}">
|
|
||||||
<Setter Property="SelectionMode" Value="Extended"/>
|
|
||||||
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="False"/>
|
|
||||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Visible"/>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style TargetType="{x:Type ListView}" BasedOn="{StaticResource ListViewBaseStyle}">
|
|
||||||
<Setter Property="SelectionMode" Value="Extended"/>
|
|
||||||
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="False"/>
|
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
</Application>
|
</Application>
|
||||||
|
|||||||
@@ -1,5 +1,83 @@
|
|||||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:o="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
||||||
|
xmlns:utils="clr-namespace:SpineViewer.Utils"
|
||||||
|
xmlns:hc="https://handyorg.github.io/handycontrol">
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
|
<utils:StringFormatMultiValueConverter x:Key="StrFmtCvter"/>
|
||||||
|
<utils:BackgroundToForegroundConverter x:Key="Bg2FgCvter"/>
|
||||||
|
|
||||||
|
<Style x:Key="MyGridSplitterBaseStyle" TargetType="{x:Type GridSplitter}">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource SecondaryBorderBrush}"/>
|
||||||
|
<Setter Property="ShowsPreview" Value="False"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="ResizeDirection" Value="Columns">
|
||||||
|
<Setter Property="Width" Value="3"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="ResizeDirection" Value="Rows">
|
||||||
|
<Setter Property="Height" Value="3"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyToggleButtonBaseStyle" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToggleButtonSwitch}">
|
||||||
|
<Setter Property="hc:VisualElement.HighlightBrush" Value="{DynamicResource DarkSuccessBrush}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyListBoxBaseStyle" TargetType="{x:Type ListBox}" BasedOn="{StaticResource ListBoxBaseStyle}">
|
||||||
|
<Setter Property="SelectionMode" Value="Extended"/>
|
||||||
|
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="False"/>
|
||||||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Visible"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyListBoxItemBaseStyle" TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource ListBoxItemBaseStyle}">
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyListViewBaseStyle" TargetType="{x:Type ListView}" BasedOn="{StaticResource ListViewBaseStyle}">
|
||||||
|
<Setter Property="SelectionMode" Value="Extended"/>
|
||||||
|
<Setter Property="VirtualizingPanel.IsVirtualizing" Value="False"/>
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="ItemContainerStyle" Value="{StaticResource ListViewItemBaseStyle.Small}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyGroupBoxBaseStyle" TargetType="{x:Type GroupBox}" BasedOn="{StaticResource GroupBoxTab}">
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="hc:TitleElement.Background" Value="Transparent"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyLogRichTextBoxStyle" TargetType="{x:Type RichTextBox}" BasedOn="{StaticResource RichTextBoxBaseStyle}">
|
||||||
|
<Setter Property="IsReadOnly" Value="True"/>
|
||||||
|
<Setter Property="FontFamily" Value="Consolas"/>
|
||||||
|
<Setter Property="Block.LineHeight" Value="3"/>
|
||||||
|
<Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MyVerticalScrollViewerBaseStyle" TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource ScrollViewerNativeBaseStyle}">
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="ComputedVerticalScrollBarVisibility" Value="Visible">
|
||||||
|
<Setter Property="Padding" Value="0 0 5 0"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="{x:Type GridSplitter}" BasedOn="{StaticResource MyGridSplitterBaseStyle}"/>
|
||||||
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}"/>
|
||||||
|
<Style TargetType="{x:Type ListBox}" BasedOn="{StaticResource MyListBoxBaseStyle}"/>
|
||||||
|
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource MyListBoxItemBaseStyle}"/>
|
||||||
|
<Style TargetType="{x:Type ListView}" BasedOn="{StaticResource MyListViewBaseStyle}"/>
|
||||||
|
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MyGroupBoxBaseStyle}"/>
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
Height="800"
|
Height="800"
|
||||||
ShowInTaskbar="False"
|
ShowInTaskbar="False"
|
||||||
WindowStartupLocation="CenterOwner">
|
WindowStartupLocation="CenterOwner">
|
||||||
<Window.Resources>
|
|
||||||
<utils:BackgroundToForegroundConverter x:Key="Bg2FgCvter"/>
|
|
||||||
</Window.Resources>
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Border DockPanel.Dock="Bottom">
|
<Border DockPanel.Dock="Bottom">
|
||||||
<WrapPanel HorizontalAlignment="Center">
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
@@ -44,17 +41,15 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource GroupBoxTab}">
|
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MyGroupBoxBaseStyle}">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
<Setter Property="hc:TitleElement.Background" Value="Transparent"/>
|
|
||||||
<Setter Property="Margin" Value="0 5 0 10"/>
|
<Setter Property="Margin" Value="0 5 0 10"/>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Resources>
|
</Border.Resources>
|
||||||
|
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
Height="750"
|
Height="750"
|
||||||
ShowInTaskbar="False"
|
ShowInTaskbar="False"
|
||||||
WindowStartupLocation="CenterOwner">
|
WindowStartupLocation="CenterOwner">
|
||||||
<Window.Resources>
|
|
||||||
<utils:BackgroundToForegroundConverter x:Key="Bg2FgCvter"/>
|
|
||||||
</Window.Resources>
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Border DockPanel.Dock="Bottom">
|
<Border DockPanel.Dock="Bottom">
|
||||||
<WrapPanel HorizontalAlignment="Center">
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
@@ -44,17 +41,15 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource GroupBoxTab}">
|
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MyGroupBoxBaseStyle}">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
<Setter Property="hc:TitleElement.Background" Value="Transparent"/>
|
|
||||||
<Setter Property="Margin" Value="0 5 0 10"/>
|
<Setter Property="Margin" Value="0 5 0 10"/>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Resources>
|
</Border.Resources>
|
||||||
|
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
Height="480"
|
Height="480"
|
||||||
ShowInTaskbar="False"
|
ShowInTaskbar="False"
|
||||||
WindowStartupLocation="CenterOwner">
|
WindowStartupLocation="CenterOwner">
|
||||||
<Window.Resources>
|
|
||||||
<utils:BackgroundToForegroundConverter x:Key="Bg2FgCvter"/>
|
|
||||||
</Window.Resources>
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Border DockPanel.Dock="Bottom">
|
<Border DockPanel.Dock="Bottom">
|
||||||
<WrapPanel HorizontalAlignment="Center">
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
@@ -44,17 +41,15 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource GroupBoxTab}">
|
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MyGroupBoxBaseStyle}">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
<Setter Property="hc:TitleElement.Background" Value="Transparent"/>
|
|
||||||
<Setter Property="Margin" Value="0 5 0 10"/>
|
<Setter Property="Margin" Value="0 5 0 10"/>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Resources>
|
</Border.Resources>
|
||||||
|
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
Height="550"
|
Height="550"
|
||||||
ShowInTaskbar="False"
|
ShowInTaskbar="False"
|
||||||
WindowStartupLocation="CenterOwner">
|
WindowStartupLocation="CenterOwner">
|
||||||
<Window.Resources>
|
|
||||||
<utils:BackgroundToForegroundConverter x:Key="Bg2FgCvter"/>
|
|
||||||
</Window.Resources>
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Border DockPanel.Dock="Bottom">
|
<Border DockPanel.Dock="Bottom">
|
||||||
<WrapPanel HorizontalAlignment="Center">
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
@@ -44,17 +41,15 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource GroupBoxTab}">
|
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MyGroupBoxBaseStyle}">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
<Setter Property="hc:TitleElement.Background" Value="Transparent"/>
|
|
||||||
<Setter Property="Margin" Value="0 5 0 10"/>
|
<Setter Property="Margin" Value="0 5 0 10"/>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Resources>
|
</Border.Resources>
|
||||||
|
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
<GroupBox Header="{DynamicResource Str_ExportBaseArgs}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||||
xmlns:vm="clr-namespace:SpineViewer.ViewModels.MainWindow"
|
xmlns:vm="clr-namespace:SpineViewer.ViewModels.MainWindow"
|
||||||
xmlns:utils="clr-namespace:SpineViewer.Utils"
|
|
||||||
xmlns:SFMLRenderer="clr-namespace:SFMLRenderer;assembly=SFMLRenderer"
|
xmlns:SFMLRenderer="clr-namespace:SFMLRenderer;assembly=SFMLRenderer"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
x:Name="_mainWindow"
|
x:Name="_mainWindow"
|
||||||
@@ -20,27 +19,6 @@
|
|||||||
LocationChanged="MainWindow_LocationChanged"
|
LocationChanged="MainWindow_LocationChanged"
|
||||||
SizeChanged="MainWindow_SizeChanged">
|
SizeChanged="MainWindow_SizeChanged">
|
||||||
|
|
||||||
<Window.Resources>
|
|
||||||
<Style TargetType="{x:Type GridSplitter}">
|
|
||||||
<Setter Property="Background" Value="{DynamicResource SecondaryBorderBrush}"/>
|
|
||||||
<Setter Property="ShowsPreview" Value="False"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<Trigger Property="ResizeDirection" Value="Columns">
|
|
||||||
<Setter Property="Width" Value="3"/>
|
|
||||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
||||||
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger Property="ResizeDirection" Value="Rows">
|
|
||||||
<Setter Property="Height" Value="3"/>
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
||||||
</Trigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
<utils:StringFormatMultiValueConverter x:Key="StrFmtCvter"/>
|
|
||||||
<utils:BackgroundToForegroundConverter x:Key="Bg2FgCvter"/>
|
|
||||||
</Window.Resources>
|
|
||||||
|
|
||||||
<Window.TaskbarItemInfo>
|
<Window.TaskbarItemInfo>
|
||||||
<TaskbarItemInfo ProgressState="{Binding ProgressState}" ProgressValue="{Binding ProgressValue}"/>
|
<TaskbarItemInfo ProgressState="{Binding ProgressState}" ProgressValue="{Binding ProgressValue}"/>
|
||||||
</Window.TaskbarItemInfo>
|
</Window.TaskbarItemInfo>
|
||||||
@@ -139,10 +117,6 @@
|
|||||||
MouseLeftButtonUp="SpinesListView_MouseLeftButtonUp"
|
MouseLeftButtonUp="SpinesListView_MouseLeftButtonUp"
|
||||||
DragEnter="SpinesListView_DragEnter"
|
DragEnter="SpinesListView_DragEnter"
|
||||||
Drop="SpinesListView_Drop">
|
Drop="SpinesListView_Drop">
|
||||||
<ListView.ItemContainerStyle>
|
|
||||||
<Style TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource ListViewItemBaseStyle.Small}"/>
|
|
||||||
</ListView.ItemContainerStyle>
|
|
||||||
|
|
||||||
<i:Interaction.Triggers>
|
<i:Interaction.Triggers>
|
||||||
<i:EventTrigger EventName="SelectionChanged">
|
<i:EventTrigger EventName="SelectionChanged">
|
||||||
<i:InvokeCommandAction Command="{Binding Cmd_ListViewSelectionChanged}"
|
<i:InvokeCommandAction Command="{Binding Cmd_ListViewSelectionChanged}"
|
||||||
@@ -254,13 +228,14 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
</TabControl.Resources>
|
</TabControl.Resources>
|
||||||
|
|
||||||
<!-- 基本属性页 -->
|
<!-- 基本属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_BaseInfo}">
|
<TabItem Header="{DynamicResource Str_BaseInfo}">
|
||||||
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<!-- 名称 -->
|
<!-- 名称 -->
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -340,10 +315,12 @@
|
|||||||
ToolTip="{Binding Text, RelativeSource={RelativeSource Mode=Self}}"/>
|
ToolTip="{Binding Text, RelativeSource={RelativeSource Mode=Self}}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<!-- 渲染属性页 -->
|
<!-- 渲染属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_Render}">
|
<TabItem Header="{DynamicResource Str_Render}">
|
||||||
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<!-- 显示 -->
|
<!-- 显示 -->
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -387,10 +364,12 @@
|
|||||||
<TextBox Grid.Column="1" Text="{Binding TimeScale}" ToolTip="{DynamicResource Str_TimeScaleTootltip}"/>
|
<TextBox Grid.Column="1" Text="{Binding TimeScale}" ToolTip="{DynamicResource Str_TimeScaleTootltip}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<!-- 变换属性页 -->
|
<!-- 变换属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_Transform}">
|
<TabItem Header="{DynamicResource Str_Transform}">
|
||||||
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<!-- 缩放 -->
|
<!-- 缩放 -->
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -442,19 +421,12 @@
|
|||||||
<TextBox Grid.Column="1" Text="{Binding Y}"/>
|
<TextBox Grid.Column="1" Text="{Binding Y}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<!-- 皮肤属性页 -->
|
<!-- 皮肤属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_Skin}">
|
<TabItem Header="{DynamicResource Str_Skin}">
|
||||||
<ListBox ItemsSource="{Binding Skins}">
|
<ListBox ItemsSource="{Binding Skins}">
|
||||||
<ListBox.ItemContainerStyle>
|
|
||||||
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource ListBoxItemBaseStyle}">
|
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
||||||
<Setter Property="Padding" Value="0"/>
|
|
||||||
<Setter Property="Margin" Value="0"/>
|
|
||||||
</Style>
|
|
||||||
</ListBox.ItemContainerStyle>
|
|
||||||
|
|
||||||
<ListBox.ContextMenu>
|
<ListBox.ContextMenu>
|
||||||
<ContextMenu>
|
<ContextMenu>
|
||||||
<MenuItem Header="{DynamicResource Str_EnableSkins}"
|
<MenuItem Header="{DynamicResource Str_EnableSkins}"
|
||||||
@@ -486,14 +458,6 @@
|
|||||||
<!-- 插槽属性页 -->
|
<!-- 插槽属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_Slot}">
|
<TabItem Header="{DynamicResource Str_Slot}">
|
||||||
<ListBox ItemsSource="{Binding Slots}" Grid.IsSharedSizeScope="True">
|
<ListBox ItemsSource="{Binding Slots}" Grid.IsSharedSizeScope="True">
|
||||||
<ListBox.ItemContainerStyle>
|
|
||||||
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource ListBoxItemBaseStyle}">
|
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
||||||
<Setter Property="Padding" Value="0"/>
|
|
||||||
<Setter Property="Margin" Value="0"/>
|
|
||||||
</Style>
|
|
||||||
</ListBox.ItemContainerStyle>
|
|
||||||
|
|
||||||
<ListBox.ContextMenu>
|
<ListBox.ContextMenu>
|
||||||
<ContextMenu>
|
<ContextMenu>
|
||||||
<MenuItem Header="{DynamicResource Str_EnableSlots}"
|
<MenuItem Header="{DynamicResource Str_EnableSlots}"
|
||||||
@@ -527,14 +491,6 @@
|
|||||||
<!-- 动画属性页 -->
|
<!-- 动画属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_Animation}">
|
<TabItem Header="{DynamicResource Str_Animation}">
|
||||||
<ListBox ItemsSource="{Binding AnimationTracks}" Grid.IsSharedSizeScope="True">
|
<ListBox ItemsSource="{Binding AnimationTracks}" Grid.IsSharedSizeScope="True">
|
||||||
<ListBox.ItemContainerStyle>
|
|
||||||
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource ListBoxItemBaseStyle}">
|
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
||||||
<Setter Property="Padding" Value="0"/>
|
|
||||||
<Setter Property="Margin" Value="0"/>
|
|
||||||
</Style>
|
|
||||||
</ListBox.ItemContainerStyle>
|
|
||||||
|
|
||||||
<ListBox.ContextMenu>
|
<ListBox.ContextMenu>
|
||||||
<ContextMenu>
|
<ContextMenu>
|
||||||
<MenuItem Header="{DynamicResource Str_AppendTrack}"
|
<MenuItem Header="{DynamicResource Str_AppendTrack}"
|
||||||
@@ -594,6 +550,7 @@
|
|||||||
|
|
||||||
<!-- 调试属性页 -->
|
<!-- 调试属性页 -->
|
||||||
<TabItem Header="{DynamicResource Str_Debug}">
|
<TabItem Header="{DynamicResource Str_Debug}">
|
||||||
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<!-- 调试纹理 -->
|
<!-- 调试纹理 -->
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -696,6 +653,7 @@
|
|||||||
<ToggleButton Grid.Column="1" IsChecked="{Binding DebugPoints}"/>
|
<ToggleButton Grid.Column="1" IsChecked="{Binding DebugPoints}"/>
|
||||||
</Grid>-->
|
</Grid>-->
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -825,10 +783,11 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
</TabItem.Resources>
|
</TabItem.Resources>
|
||||||
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
<StackPanel Grid.IsSharedSizeScope="True">
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<!-- 水平分辨率 -->
|
<!-- 水平分辨率 -->
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -991,6 +950,7 @@
|
|||||||
<ComboBox Grid.Column="1" SelectedValue="{Binding BackgroundImageMode}" ItemsSource="{x:Static vm:SFMLRendererViewModel.StretchOptions}"/>
|
<ComboBox Grid.Column="1" SelectedValue="{Binding BackgroundImageMode}" ItemsSource="{x:Static vm:SFMLRendererViewModel.StretchOptions}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Border>
|
</Border>
|
||||||
@@ -1050,12 +1010,7 @@
|
|||||||
|
|
||||||
<!-- 日志框容器 -->
|
<!-- 日志框容器 -->
|
||||||
<Border Grid.Row="2" Name="_loggerBoxContainer">
|
<Border Grid.Row="2" Name="_loggerBoxContainer">
|
||||||
<RichTextBox x:Name="_loggerRichTextBox"
|
<RichTextBox x:Name="_loggerRichTextBox" Grid.Row="2" Style="{StaticResource MyLogRichTextBoxStyle}"/>
|
||||||
Grid.Row="2"
|
|
||||||
IsReadOnly="True"
|
|
||||||
FontFamily="Consolas"
|
|
||||||
Block.LineHeight="3"
|
|
||||||
VerticalScrollBarVisibility="Visible"/>
|
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
@@ -41,17 +41,16 @@
|
|||||||
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButton}">
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MyToggleButtonBaseStyle}">
|
||||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource GroupBoxTab}">
|
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MyGroupBoxBaseStyle}">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
<Setter Property="hc:TitleElement.Background" Value="Transparent"/>
|
|
||||||
<Setter Property="Margin" Value="0 5 0 10"/>
|
<Setter Property="Margin" Value="0 5 0 10"/>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Resources>
|
</Border.Resources>
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
||||||
<StackPanel Grid.IsSharedSizeScope="True" Margin="0 0 0 50">
|
<ScrollViewer Style="{StaticResource MyVerticalScrollViewerBaseStyle}">
|
||||||
|
<StackPanel Grid.IsSharedSizeScope="True">
|
||||||
<GroupBox Header="{DynamicResource Str_TextureLoadPreference}">
|
<GroupBox Header="{DynamicResource Str_TextureLoadPreference}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user