mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-20 20:32:32 +12:00
kill tabs with a rusty spoon
This commit is contained in:
parent
e587e2cb82
commit
d024112dc5
|
@ -1,7 +1,7 @@
|
|||
<Application x:Class="ModAssistant.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
DispatcherUnhandledException="Application_DispatcherUnhandledException"
|
||||
DispatcherUnhandledException="Application_DispatcherUnhandledException"
|
||||
Startup="Application_Startup">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ModAssistant"
|
||||
mc:Ignorable="d"
|
||||
Icon="Resources/icon.ico"
|
||||
Icon="Resources/icon.ico"
|
||||
Title="{DynamicResource MainWindow:WindowTitle}"
|
||||
SizeChanged="Window_SizeChanged"
|
||||
UIElement.PreviewMouseDown="Window_PreviewMouseDown">
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="2" Margin="15,5" FontSize="16">
|
||||
• <TextBlock Text="{DynamicResource About:List:Item1}" />
|
||||
</TextBlock>
|
||||
• <TextBlock Text="{DynamicResource About:List:Item1}" />
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="3" Margin="15,5" FontSize="16">
|
||||
• <TextBlock Text="{DynamicResource About:List:Item2}" />
|
||||
</TextBlock>
|
||||
• <TextBlock Text="{DynamicResource About:List:Item2}" />
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="4" Margin="15,5" FontSize="16">
|
||||
• <TextBlock Text="{DynamicResource About:List:Item3}" />
|
||||
</TextBlock>
|
||||
• <TextBlock Text="{DynamicResource About:List:Item3}" />
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="5" Margin="15,5" FontSize="16">
|
||||
• <TextBlock Text="{DynamicResource About:List:Item4}" />
|
||||
</TextBlock>
|
||||
• <TextBlock Text="{DynamicResource About:List:Item4}" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock TextWrapping="Wrap" Grid.Row="6" Margin="30,5,5,5" FontSize="16">
|
||||
<StaticResource ResourceKey="About:SupportAssistant" />
|
||||
<StaticResource ResourceKey="About:SupportAssistant" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="7" Margin="0,10,5,5" FontSize="20" Text="{DynamicResource About:SpecialThanks}" />
|
||||
|
@ -54,76 +54,76 @@
|
|||
|
||||
<StackPanel Margin="10" Orientation="Vertical">
|
||||
<TextBlock FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://umbranox.carrd.co/" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
Umbranox
|
||||
</Hyperlink>
|
||||
<Hyperlink NavigateUri="https://umbranox.carrd.co/" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
Umbranox
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Inspiration</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Creating the Mod Manager</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://www.patreon.com/scoresaber" local:HyperlinkExtensions.IsExternal="True">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
<Hyperlink NavigateUri="https://www.patreon.com/scoresaber" local:HyperlinkExtensions.IsExternal="True">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="10" Orientation="Vertical">
|
||||
<TextBlock FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://www.jackbaron.com/" local:HyperlinkExtensions.IsExternal="True">
|
||||
lolPants
|
||||
</Hyperlink>
|
||||
<Hyperlink NavigateUri="https://www.jackbaron.com/" local:HyperlinkExtensions.IsExternal="True">
|
||||
lolPants
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Inspiration</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Creating ModSaber</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">The first Mod repository</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://www.paypal.me/jackbarondev" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Hyperlink NavigateUri="https://www.paypal.me/jackbarondev" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<StackPanel Margin="10" Orientation="Vertical">
|
||||
<TextBlock FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://www.github.com/Caeden117" local:HyperlinkExtensions.IsExternal="True">
|
||||
Caeden117
|
||||
</Hyperlink>
|
||||
<Hyperlink NavigateUri="https://www.github.com/Caeden117" local:HyperlinkExtensions.IsExternal="True">
|
||||
Caeden117
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Theme Support</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://ko-fi.com/Caeden117" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Hyperlink NavigateUri="https://ko-fi.com/Caeden117" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="10" Orientation="Vertical">
|
||||
<TextBlock FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://twitter.com/moarinterz" local:HyperlinkExtensions.IsExternal="True">
|
||||
Interz
|
||||
</Hyperlink>
|
||||
<Hyperlink NavigateUri="https://twitter.com/moarinterz" local:HyperlinkExtensions.IsExternal="True">
|
||||
Interz
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Logos and icon</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://streamlabs.com/lnterz/tip" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Hyperlink NavigateUri="https://streamlabs.com/lnterz/tip" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="10" Orientation="Vertical">
|
||||
<TextBlock FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://github.com/megalon" local:HyperlinkExtensions.IsExternal="True">
|
||||
Megalon2D
|
||||
</Hyperlink>
|
||||
<Hyperlink NavigateUri="https://github.com/megalon" local:HyperlinkExtensions.IsExternal="True">
|
||||
Megalon2D
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">BSMG Theme</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">Lots of fixes</TextBlock>
|
||||
<TextBlock FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Hyperlink NavigateUri="https://ko-fi.com/megalon" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Hyperlink NavigateUri="https://ko-fi.com/megalon" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{DynamicResource About:Donate}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<Page x:Class="ModAssistant.Pages.Intro"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:ModAssistant"
|
||||
mc:Ignorable="d"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="629" d:DesignWidth="1182"
|
||||
Title="DynamicResource Intro:Title">
|
||||
|
||||
|
@ -27,35 +27,35 @@
|
|||
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="48" Margin="0" Text="{DynamicResource Intro:PageTitle}" />
|
||||
<TextBlock Grid.Row="1" FontWeight="Bold" Text="{DynamicResource Intro:Terms:Header}" Margin="0" FontSize="28" />
|
||||
<TextBlock Grid.Row="2" Margin="0,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:Terms:Line1" />
|
||||
<StaticResource ResourceKey="Intro:Terms:Line1" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="0,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:Terms:Line2" />
|
||||
<StaticResource ResourceKey="Intro:Terms:Line2" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="4" Margin="15,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:Terms:Term1" />
|
||||
<StaticResource ResourceKey="Intro:Terms:Term1" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="5" Margin="15,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:Terms:Term2" />
|
||||
<StaticResource ResourceKey="Intro:Terms:Term2" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="6" Margin="15,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:Terms:Term3" />
|
||||
<StaticResource ResourceKey="Intro:Terms:Term3" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="7" Margin="0,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:ReviewsBeatGamesFault" />
|
||||
<StaticResource ResourceKey="Intro:ReviewsBeatGamesFault" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="8" Margin="0,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:ReviewsRustySpoon" />
|
||||
<StaticResource ResourceKey="Intro:ReviewsRustySpoon" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="9" Margin="0,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Intro:WikiGuide" />
|
||||
<StaticResource ResourceKey="Intro:WikiGuide" />
|
||||
</TextBlock>
|
||||
|
||||
<StackPanel Margin="10" Grid.Row="10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
|
|
|
@ -32,27 +32,27 @@
|
|||
<TextBlock Grid.Row="2" Grid.ColumnSpan="2" Margin="0,5" FontSize="16" TextWrapping="Wrap" Text="{DynamicResource Invalid:List:Header}" />
|
||||
|
||||
<TextBlock Grid.Row="3" Grid.ColumnSpan="2" Margin="15,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Invalid:List:Line1" />
|
||||
<StaticResource ResourceKey="Invalid:List:Line1" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="4" Grid.ColumnSpan="2" Margin="15,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Invalid:List:Line2" />
|
||||
<StaticResource ResourceKey="Invalid:List:Line2" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="5" Grid.ColumnSpan="2" Margin="15,5" FontSize="16" TextWrapping="Wrap">
|
||||
<StaticResource ResourceKey="Invalid:List:Line3" />
|
||||
<StaticResource ResourceKey="Invalid:List:Line3" />
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="6" Grid.ColumnSpan="2" FontWeight="Bold" Margin="0" FontSize="28" />
|
||||
<TextBlock Grid.Row="7" Grid.ColumnSpan="2" FontWeight="Bold" Margin="0" FontSize="20">
|
||||
<TextBlock Text="{DynamicResource Invalid:BoughtGame1}" />:
|
||||
</TextBlock>
|
||||
<TextBlock Text="{DynamicResource Invalid:BoughtGame1}" />:
|
||||
</TextBlock>
|
||||
<Border Grid.Row="8" Background="LightGray" Height="30" MinWidth="650" >
|
||||
<TextBlock Name="DirectoryTextBlock" Margin="5" Text="{Binding InstallDirectory}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"/>
|
||||
</Border>
|
||||
<Button Grid.Row="8" Grid.Column="2" Margin="3" Height="30" Width="80" Content="{DynamicResource Invalid:SelectFolderButton}" Click="SelectDirButton_Click"/>
|
||||
<TextBlock Grid.Row="9" Grid.ColumnSpan="2" FontWeight="Bold" Margin="0" FontSize="20">
|
||||
<TextBlock Text="{DynamicResource Invalid:BoughtGame2}" />.
|
||||
</TextBlock>
|
||||
<TextBlock Text="{DynamicResource Invalid:BoughtGame2}" />.
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<Page x:Class="ModAssistant.Pages.Mods"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:ModAssistant"
|
||||
mc:Ignorable="d"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="629" d:DesignWidth="1182"
|
||||
Loaded="Page_Loaded"
|
||||
Title="{DynamicResource Mods:Title}">
|
||||
|
@ -37,10 +37,10 @@
|
|||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Margin="{Binding PromotionMargin}">
|
||||
<Hyperlink NavigateUri="{Binding PromotionLink, TargetNullValue=about:blank}" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{Binding PromotionText}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Hyperlink NavigateUri="{Binding PromotionLink, TargetNullValue=about:blank}" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="{Binding PromotionText}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding ModDescription}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
|
|
@ -5,45 +5,45 @@
|
|||
<Setter.Value>
|
||||
<ControlTemplate TargetType="CheckBox">
|
||||
<Grid
|
||||
Name="templateRoot"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="{DynamicResource CheckboxDefaultOutlineColor}">
|
||||
Name="templateRoot"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="{DynamicResource CheckboxDefaultOutlineColor}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
Name="checkBoxBorder"
|
||||
Margin="1"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
BorderThickness="0"
|
||||
Background="{DynamicResource CheckboxDefaultBackground}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}">
|
||||
Name="checkBoxBorder"
|
||||
Margin="1"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
BorderThickness="0"
|
||||
Background="{DynamicResource CheckboxDefaultBackground}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}">
|
||||
<Grid Name="markGrid">
|
||||
<Path
|
||||
Name="optionMark"
|
||||
Opacity="0"
|
||||
Stretch="None"
|
||||
Margin="1"
|
||||
Data="F1 M9.97498,1.22334 L4.6983,9.09834 L4.52164,9.09834 L0,5.19331 L1.27664,3.52165 L4.255,6.08833 L8.33331,1.52588E-05 L9.97498,1.22334"
|
||||
Fill="{DynamicResource CheckboxTickColor}" />
|
||||
Name="optionMark"
|
||||
Opacity="0"
|
||||
Stretch="None"
|
||||
Margin="1"
|
||||
Data="F1 M9.97498,1.22334 L4.6983,9.09834 L4.52164,9.09834 L0,5.19331 L1.27664,3.52165 L4.255,6.08833 L8.33331,1.52588E-05 L9.97498,1.22334"
|
||||
Fill="{DynamicResource CheckboxTickColor}" />
|
||||
<Rectangle
|
||||
Name="indeterminateMark"
|
||||
Margin="2"
|
||||
Opacity="0"
|
||||
Fill="{DynamicResource CheckboxTickColor}" />
|
||||
Name="indeterminateMark"
|
||||
Margin="2"
|
||||
Opacity="0"
|
||||
Fill="{DynamicResource CheckboxTickColor}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Name="contentPresenter"
|
||||
RecognizesAccessKey="True"
|
||||
Grid.Column="1"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Focusable="False" />
|
||||
Name="contentPresenter"
|
||||
RecognizesAccessKey="True"
|
||||
Grid.Column="1"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Focusable="False" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="UIElement.IsMouseOver" Value="True">
|
||||
|
|
|
@ -12,61 +12,61 @@
|
|||
<ColumnDefinition MinWidth="{DynamicResource SystemParameters.VerticalScrollBarWidthKey}" Width="0" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Popup
|
||||
Name="PART_Popup"
|
||||
AllowsTransparency="True"
|
||||
Placement="Bottom"
|
||||
Grid.ColumnSpan="2"
|
||||
PopupAnimation="Slide"
|
||||
IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}">
|
||||
Name="PART_Popup"
|
||||
AllowsTransparency="True"
|
||||
Placement="Bottom"
|
||||
Grid.ColumnSpan="2"
|
||||
PopupAnimation="Slide"
|
||||
IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}">
|
||||
<Border
|
||||
Name="DropDownBorder"
|
||||
BorderBrush="{DynamicResource ComboBoxOutline}"
|
||||
Background="{DynamicResource ComboBoxBackground}"
|
||||
BorderThickness="1"
|
||||
Name="DropDownBorder"
|
||||
BorderBrush="{DynamicResource ComboBoxOutline}"
|
||||
Background="{DynamicResource ComboBoxBackground}"
|
||||
BorderThickness="1"
|
||||
MinWidth="{Binding ActualWidth, ElementName=templateRoot}">
|
||||
<ScrollViewer Name="DropDownScrollViewer">
|
||||
<Grid Name="grid" RenderOptions.ClearTypeHint="Enabled">
|
||||
<Canvas
|
||||
Name="canvas"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Height="0"
|
||||
Width="0">
|
||||
Name="canvas"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Height="0"
|
||||
Width="0">
|
||||
<Rectangle
|
||||
Name="OpaqueRect"
|
||||
Fill="{Binding Background, ElementName=DropDownBorder}"
|
||||
MinHeight="{Binding ActualHeight, ElementName=DropDownBorder}"
|
||||
MinWidth="{Binding ActualWidth, ElementName=DropDownBorder}" />
|
||||
Name="OpaqueRect"
|
||||
Fill="{Binding Background, ElementName=DropDownBorder}"
|
||||
MinHeight="{Binding ActualHeight, ElementName=DropDownBorder}"
|
||||
MinWidth="{Binding ActualWidth, ElementName=DropDownBorder}" />
|
||||
</Canvas>
|
||||
<ItemsPresenter
|
||||
Name="ItemsPresenter"
|
||||
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
Name="ItemsPresenter"
|
||||
KeyboardNavigation.DirectionalNavigation="Contained"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
</Popup>
|
||||
<Border
|
||||
Name="Border"
|
||||
Name="Border"
|
||||
Background="Transparent"
|
||||
Margin="0">
|
||||
Margin="0">
|
||||
<TextBox
|
||||
Name="PART_EditableTextBox"
|
||||
Margin="2.5"
|
||||
Name="PART_EditableTextBox"
|
||||
Margin="2.5"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="0"
|
||||
Foreground="{DynamicResource TextColor}"
|
||||
HorizontalContentAlignment="Left"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
IsReadOnly="True"
|
||||
HorizontalContentAlignment="Left"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
IsReadOnly="True"
|
||||
Background="Transparent"
|
||||
Text="{TemplateBinding Text}"/>
|
||||
</Border>
|
||||
<ToggleButton
|
||||
Name="toggleButton"
|
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
Name="toggleButton"
|
||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
|
||||
<Border
|
||||
Name="Bd"
|
||||
BorderBrush="{DynamicResource ComboBoxOutline}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Background="{DynamicResource ComboBoxBackground}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="True">
|
||||
Name="Bd"
|
||||
BorderBrush="{DynamicResource ComboBoxOutline}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Background="{DynamicResource ComboBoxBackground}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="True">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
|
|
|
@ -29,13 +29,13 @@
|
|||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<Border
|
||||
Name="HeaderHoverBorder"
|
||||
BorderThickness="1,0,1,1"
|
||||
Margin="1,1,0,0" />
|
||||
Name="HeaderHoverBorder"
|
||||
BorderThickness="1,0,1,1"
|
||||
Margin="1,1,0,0" />
|
||||
<Border
|
||||
Name="HeaderPressBorder"
|
||||
BorderThickness="1,1,1,0"
|
||||
Margin="1,0,0,1" />
|
||||
Name="HeaderPressBorder"
|
||||
BorderThickness="1,1,1,0"
|
||||
Margin="1,0,0,1" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
|
|
@ -4,24 +4,24 @@
|
|||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListViewItem">
|
||||
<Border
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
Background="{TemplateBinding Background}"
|
||||
CornerRadius="2"
|
||||
SnapsToDevicePixels="True">
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
Background="{TemplateBinding Background}"
|
||||
CornerRadius="2"
|
||||
SnapsToDevicePixels="True">
|
||||
<Border
|
||||
Name="InnerBorder"
|
||||
CornerRadius="1"
|
||||
BorderThickness="1">
|
||||
Name="InnerBorder"
|
||||
CornerRadius="1"
|
||||
BorderThickness="1">
|
||||
<Grid>
|
||||
<Rectangle
|
||||
Name="BorderBox"
|
||||
Visibility="Collapsed"
|
||||
Fill="Transparent" />
|
||||
Name="BorderBox"
|
||||
Visibility="Collapsed"
|
||||
Fill="Transparent" />
|
||||
<GridViewRowPresenter
|
||||
Grid.RowSpan="2"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
Grid.RowSpan="2"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Border>
|
||||
|
|
|
@ -1,73 +1,73 @@
|
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style
|
||||
TargetType="{x:Type RepeatButton}"
|
||||
TargetType="{x:Type RepeatButton}"
|
||||
x:Key="ModAssistantRepeatButton">
|
||||
<Setter
|
||||
Property="BorderThickness"
|
||||
Value="1" />
|
||||
Value="1" />
|
||||
<Setter
|
||||
Property="HorizontalContentAlignment"
|
||||
Value="Center" />
|
||||
Property="HorizontalContentAlignment"
|
||||
Value="Center" />
|
||||
<Setter
|
||||
Property="VerticalContentAlignment"
|
||||
Value="Center" />
|
||||
Property="VerticalContentAlignment"
|
||||
Value="Center" />
|
||||
<Setter
|
||||
Property="Padding"
|
||||
Value="1" />
|
||||
Property="Padding"
|
||||
Value="1" />
|
||||
<Setter
|
||||
Property="Focusable"
|
||||
Value="False" />
|
||||
Property="Focusable"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="IsTabStop"
|
||||
Value="False" />
|
||||
Property="IsTabStop"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="Template">
|
||||
Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
<Border
|
||||
Name="border"
|
||||
BorderThickness="1"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
BorderBrush="{StaticResource ScrollBarBorder}">
|
||||
Name="border"
|
||||
BorderThickness="1"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
BorderBrush="{StaticResource ScrollBarBorder}">
|
||||
<ContentPresenter
|
||||
Name="contentPresenter"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Focusable="False" />
|
||||
Name="contentPresenter"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Focusable="False" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger
|
||||
Property="UIElement.IsMouseOver"
|
||||
Value="True">
|
||||
Property="UIElement.IsMouseOver"
|
||||
Value="True">
|
||||
<Setter
|
||||
TargetName="border"
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
TargetName="border"
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
</Trigger>
|
||||
<Trigger
|
||||
Property="IsPressed"
|
||||
Value="True">
|
||||
Property="IsPressed"
|
||||
Value="True">
|
||||
<Setter
|
||||
TargetName="border"
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
TargetName="border"
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
</Trigger>
|
||||
<Trigger
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter
|
||||
TargetName="contentPresenter"
|
||||
Property="UIElement.Opacity"
|
||||
Value="0.56" />
|
||||
TargetName="contentPresenter"
|
||||
Property="UIElement.Opacity"
|
||||
Value="0.56" />
|
||||
<Setter
|
||||
TargetName="border"
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
TargetName="border"
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
@ -75,29 +75,29 @@
|
|||
</Setter>
|
||||
</Style>
|
||||
<Style
|
||||
TargetType="{x:Type RepeatButton}"
|
||||
x:Key="ModAssistantSmallRepeatButton">
|
||||
TargetType="{x:Type RepeatButton}"
|
||||
x:Key="ModAssistantSmallRepeatButton">
|
||||
<Setter
|
||||
Property="FrameworkElement.OverridesDefaultStyle"
|
||||
Value="True" />
|
||||
Property="FrameworkElement.OverridesDefaultStyle"
|
||||
Value="True" />
|
||||
<Setter
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarBackground}" />
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarBackground}" />
|
||||
<Setter
|
||||
Property="Focusable"
|
||||
Value="False" />
|
||||
Property="Focusable"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="IsTabStop"
|
||||
Value="False" />
|
||||
Property="IsTabStop"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="Template">
|
||||
Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
<Rectangle
|
||||
Fill="{TemplateBinding Background}"
|
||||
Height="{TemplateBinding Height}"
|
||||
Width="{TemplateBinding Width}" />
|
||||
Fill="{TemplateBinding Background}"
|
||||
Height="{TemplateBinding Height}"
|
||||
Width="{TemplateBinding Width}" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
|
|
@ -1,169 +1,169 @@
|
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style
|
||||
TargetType="{x:Type ScrollBar}"
|
||||
x:Key="{x:Type ScrollBar}">
|
||||
TargetType="{x:Type ScrollBar}"
|
||||
x:Key="{x:Type ScrollBar}">
|
||||
<Setter
|
||||
Property="Stylus.IsPressAndHoldEnabled"
|
||||
Value="False" />
|
||||
Property="Stylus.IsPressAndHoldEnabled"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="Stylus.IsFlicksEnabled"
|
||||
Value="False" />
|
||||
Property="Stylus.IsFlicksEnabled"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarBackground}" />
|
||||
Property="Background"
|
||||
Value="{DynamicResource ScrollBarBackground}" />
|
||||
<Setter
|
||||
Property="BorderBrush"
|
||||
Value="{DynamicResource ScrollBarBorder}" />
|
||||
Property="BorderBrush"
|
||||
Value="{DynamicResource ScrollBarBorder}" />
|
||||
<Setter
|
||||
Property="Foreground"
|
||||
Value="{DynamicResource ScrollBarTextColor}" />
|
||||
Property="Foreground"
|
||||
Value="{DynamicResource ScrollBarTextColor}" />
|
||||
<Setter
|
||||
Property="BorderThickness"
|
||||
Value="1,0" />
|
||||
Property="BorderThickness"
|
||||
Value="1,0" />
|
||||
<Setter
|
||||
Property="Width"
|
||||
Value="{DynamicResource SystemParameters.VerticalScrollBarWidthKey}" />
|
||||
Property="Width"
|
||||
Value="{DynamicResource SystemParameters.VerticalScrollBarWidthKey}" />
|
||||
<Setter
|
||||
Property="MinWidth"
|
||||
Value="16" />
|
||||
Property="MinWidth"
|
||||
Value="16" />
|
||||
<Setter
|
||||
Property="Template">
|
||||
Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
<Grid
|
||||
Name="Bg"
|
||||
SnapsToDevicePixels="True">
|
||||
Name="Bg"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition
|
||||
Height="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
Height="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
<RowDefinition
|
||||
Height="*" />
|
||||
Height="*" />
|
||||
<RowDefinition
|
||||
Height="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
Height="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Grid.Row="1"
|
||||
Background="{TemplateBinding Background}" />
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Grid.Row="1"
|
||||
Background="{TemplateBinding Background}" />
|
||||
<RepeatButton
|
||||
Name="PART_LineUpButton"
|
||||
Command="{x:Static ScrollBar.LineUpCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Name="PART_LineUpButton"
|
||||
Command="{x:Static ScrollBar.LineUpCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
|
||||
<Path
|
||||
Name="ArrowTop"
|
||||
Data="M0,4 C0,4 0,6 0,6 C0,6 3.5,2.5 3.5,2.5 C3.5,2.5 7,6 7,6 C7,6 7,4 7,4 C7,4 3.5,0.5 3.5,0.5 C3.5,0.5 0,4 0,4"
|
||||
Stretch="Uniform"
|
||||
Margin="3,4,3,3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
Name="ArrowTop"
|
||||
Data="M0,4 C0,4 0,6 0,6 C0,6 3.5,2.5 3.5,2.5 C3.5,2.5 7,6 7,6 C7,6 7,4 7,4 C7,4 3.5,0.5 3.5,0.5 C3.5,0.5 0,4 0,4"
|
||||
Stretch="Uniform"
|
||||
Margin="3,4,3,3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
</RepeatButton>
|
||||
<Track
|
||||
Name="PART_Track"
|
||||
IsDirectionReversed="True"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Grid.Row="1">
|
||||
Name="PART_Track"
|
||||
IsDirectionReversed="True"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Grid.Row="1">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton
|
||||
Command="{x:Static ScrollBar.PageUpCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Command="{x:Static ScrollBar.PageUpCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}"/>
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton
|
||||
Command="{x:Static ScrollBar.PageDownCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Command="{x:Static ScrollBar.PageDownCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}"/>
|
||||
</Track.IncreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb
|
||||
Background="{DynamicResource ScrollBarHandle}"
|
||||
Background="{DynamicResource ScrollBarHandle}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantThumb}" />
|
||||
</Track.Thumb>
|
||||
</Track>
|
||||
<RepeatButton
|
||||
Name="PART_LineDownButton"
|
||||
Command="{x:Static ScrollBar.LineDownCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Grid.Row="2"
|
||||
Name="PART_LineDownButton"
|
||||
Command="{x:Static ScrollBar.LineDownCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Grid.Row="2"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
|
||||
<Path
|
||||
Name="ArrowBottom"
|
||||
Data="M0,2.5 C0,2.5 0,0.5 0,0.5 C0,0.5 3.5,4 3.5,4 C3.5,4 7,0.5 7,0.5 C7,0.5 7,2.5 7,2.5 C7,2.5 3.5,6 3.5,6 C3.5,6 0,2.5 0,2.5"
|
||||
Stretch="Uniform"
|
||||
Margin="3,4,3,3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
Name="ArrowBottom"
|
||||
Data="M0,2.5 C0,2.5 0,0.5 0,0.5 C0,0.5 3.5,4 3.5,4 C3.5,4 7,0.5 7,0.5 C7,0.5 7,2.5 7,2.5 C7,2.5 3.5,6 3.5,6 C3.5,6 0,2.5 0,2.5"
|
||||
Stretch="Uniform"
|
||||
Margin="3,4,3,3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
</RepeatButton>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsPressed}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowBottom"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
TargetName="ArrowBottom"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsPressed}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowTop"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
TargetName="ArrowTop"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsPressed}" />
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineDownButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowBottom"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
TargetName="ArrowBottom"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsPressed}" />
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineUpButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowTop"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
TargetName="ArrowTop"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
</MultiDataTrigger>
|
||||
<Trigger
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter
|
||||
TargetName="ArrowTop"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
TargetName="ArrowTop"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
<Setter
|
||||
TargetName="ArrowBottom"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
TargetName="ArrowBottom"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
@ -171,160 +171,160 @@
|
|||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger
|
||||
Property="ScrollBar.Orientation"
|
||||
Value="Horizontal">
|
||||
Property="ScrollBar.Orientation"
|
||||
Value="Horizontal">
|
||||
<Setter
|
||||
Property="Width"
|
||||
Value="Auto" />
|
||||
Property="Width"
|
||||
Value="Auto" />
|
||||
<Setter
|
||||
Property="MinWidth"
|
||||
Value="0" />
|
||||
Property="MinWidth"
|
||||
Value="0" />
|
||||
<Setter
|
||||
Property="Height"
|
||||
Value="{DynamicResource SystemParameters.HorizontalScrollBarHeightKey}" />
|
||||
Property="Height"
|
||||
Value="{DynamicResource SystemParameters.HorizontalScrollBarHeightKey}" />
|
||||
<Setter
|
||||
Property="MinHeight"
|
||||
Value="{DynamicResource SystemParameters.HorizontalScrollBarHeightKey}" />
|
||||
Property="MinHeight"
|
||||
Value="{DynamicResource SystemParameters.HorizontalScrollBarHeightKey}" />
|
||||
<Setter
|
||||
Property="BorderThickness"
|
||||
Value="0,1" />
|
||||
Property="BorderThickness"
|
||||
Value="0,1" />
|
||||
<Setter
|
||||
Property="Template">
|
||||
Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
<Grid
|
||||
Name="Bg"
|
||||
SnapsToDevicePixels="True">
|
||||
Name="Bg"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition
|
||||
Width="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
Width="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
<ColumnDefinition
|
||||
Width="0.00001*" />
|
||||
Width="0.00001*" />
|
||||
<ColumnDefinition
|
||||
Width="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
Width="{DynamicResource ResourceKey=ScrollBarButtonHeight}" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Grid.Column="1"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}" />
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Grid.Column="1"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}" />
|
||||
<RepeatButton
|
||||
Name="PART_LineLeftButton"
|
||||
Command="{x:Static ScrollBar.LineLeftCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Name="PART_LineLeftButton"
|
||||
Command="{x:Static ScrollBar.LineLeftCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
|
||||
<Path
|
||||
Name="ArrowLeft"
|
||||
Data="M3.18,7 C3.18,7 5,7 5,7 C5,7 1.81,3.5 1.81,3.5 C1.81,3.5 5,0 5,0 C5,0 3.18,0 3.18,0 C3.18,0 0,3.5 0,3.5 C0,3.5 3.18,7 3.18,7"
|
||||
Stretch="Uniform"
|
||||
Margin="3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
Name="ArrowLeft"
|
||||
Data="M3.18,7 C3.18,7 5,7 5,7 C5,7 1.81,3.5 1.81,3.5 C1.81,3.5 5,0 5,0 C5,0 3.18,0 3.18,0 C3.18,0 0,3.5 0,3.5 C0,3.5 3.18,7 3.18,7"
|
||||
Stretch="Uniform"
|
||||
Margin="3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
</RepeatButton>
|
||||
<Track
|
||||
Name="PART_Track"
|
||||
Grid.Column="1"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}">
|
||||
Name="PART_Track"
|
||||
Grid.Column="1"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton
|
||||
Command="{x:Static ScrollBar.PageLeftCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Command="{x:Static ScrollBar.PageLeftCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}" />
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton
|
||||
Command="{x:Static ScrollBar.PageRightCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Command="{x:Static ScrollBar.PageRightCommand}"
|
||||
Background="{DynamicResource ScrollBarBackground}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}" />
|
||||
</Track.IncreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb
|
||||
Background="{DynamicResource ScrollBarHandle}"
|
||||
Background="{DynamicResource ScrollBarHandle}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantThumb}" />
|
||||
</Track.Thumb>
|
||||
</Track>
|
||||
<RepeatButton
|
||||
Name="PART_LineRightButton"
|
||||
Grid.Column="2"
|
||||
Command="{x:Static ScrollBar.LineRightCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Name="PART_LineRightButton"
|
||||
Grid.Column="2"
|
||||
Command="{x:Static ScrollBar.LineRightCommand}"
|
||||
IsEnabled="{TemplateBinding IsMouseOver}"
|
||||
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
|
||||
<Path
|
||||
Name="ArrowRight"
|
||||
Data="M1.81,7 C1.81,7 0,7 0,7 C0,7 3.18,3.5 3.18,3.5 C3.18,3.5 0,0 0,0 C0,0 1.81,0 1.81,0 C1.81,0 5,3.5 5,3.5 C5,3.5 1.81,7 1.81,7"
|
||||
Stretch="Uniform"
|
||||
Margin="3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
Name="ArrowRight"
|
||||
Data="M1.81,7 C1.81,7 0,7 0,7 C0,7 3.18,3.5 3.18,3.5 C3.18,3.5 0,0 0,0 C0,0 1.81,0 1.81,0 C1.81,0 5,3.5 5,3.5 C5,3.5 1.81,7 1.81,7"
|
||||
Stretch="Uniform"
|
||||
Margin="3"
|
||||
Fill="{DynamicResource ScrollBarArrowColor}" />
|
||||
</RepeatButton>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsPressed}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowRight"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
TargetName="ArrowRight"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsPressed}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowLeft"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
TargetName="ArrowLeft"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowClicked}" />
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsPressed}" />
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineRightButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowRight"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
TargetName="ArrowRight"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsMouseOver}" />
|
||||
Value="true"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsMouseOver}" />
|
||||
<Condition
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsPressed}" />
|
||||
Value="false"
|
||||
Binding="{Binding ElementName=PART_LineLeftButton, Path=IsPressed}" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter
|
||||
TargetName="ArrowLeft"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
TargetName="ArrowLeft"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarArrowHovered}" />
|
||||
</MultiDataTrigger>
|
||||
<Trigger
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter
|
||||
TargetName="ArrowLeft"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
TargetName="ArrowLeft"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
<Setter
|
||||
TargetName="ArrowRight"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
TargetName="ArrowRight"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarDisabled}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
|
|
@ -1,41 +1,41 @@
|
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style
|
||||
TargetType="{x:Type Thumb}"
|
||||
x:Key="ModAssistantThumb">
|
||||
TargetType="{x:Type Thumb}"
|
||||
x:Key="ModAssistantThumb">
|
||||
<Setter
|
||||
Property="FrameworkElement.OverridesDefaultStyle"
|
||||
Value="True" />
|
||||
Property="FrameworkElement.OverridesDefaultStyle"
|
||||
Value="True" />
|
||||
<Setter
|
||||
Property="IsTabStop"
|
||||
Value="False" />
|
||||
Property="IsTabStop"
|
||||
Value="False" />
|
||||
<Setter
|
||||
Property="Template">
|
||||
Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate
|
||||
TargetType="{x:Type Thumb}">
|
||||
TargetType="{x:Type Thumb}">
|
||||
<Rectangle
|
||||
Name="rectangle"
|
||||
SnapsToDevicePixels="True"
|
||||
Height="{TemplateBinding Height}"
|
||||
Width="{TemplateBinding Width}"
|
||||
Fill="{DynamicResource ScrollBarHandle}" />
|
||||
Name="rectangle"
|
||||
SnapsToDevicePixels="True"
|
||||
Height="{TemplateBinding Height}"
|
||||
Width="{TemplateBinding Width}"
|
||||
Fill="{DynamicResource ScrollBarHandle}" />
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger
|
||||
Property="UIElement.IsMouseOver"
|
||||
Value="True">
|
||||
Property="UIElement.IsMouseOver"
|
||||
Value="True">
|
||||
<Setter
|
||||
TargetName="rectangle"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarHandleHovered}" />
|
||||
TargetName="rectangle"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarHandleHovered}" />
|
||||
</Trigger>
|
||||
<Trigger
|
||||
Property="Thumb.IsDragging"
|
||||
Value="True">
|
||||
Property="Thumb.IsDragging"
|
||||
Value="True">
|
||||
<Setter
|
||||
TargetName="rectangle"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarHandleClick}" />
|
||||
TargetName="rectangle"
|
||||
Property="Fill"
|
||||
Value="{DynamicResource ScrollBarHandleClick}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
|
|
@ -21,17 +21,17 @@
|
|||
<Border
|
||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="True"
|
||||
Opacity="0.5">
|
||||
<Path
|
||||
Name="ArrowDownPath"
|
||||
Data="M2.5,0 L8.5,0 L5.5,3"
|
||||
Fill="{DynamicResource ComboBoxArrow}"
|
||||
VerticalAlignment="Center"
|
||||
Name="ArrowDownPath"
|
||||
Data="M2.5,0 L8.5,0 L5.5,3"
|
||||
Fill="{DynamicResource ComboBoxArrow}"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Right"
|
||||
Margin="5"/>
|
||||
</Border>
|
||||
|
|
Loading…
Reference in a new issue