
14 changed files with 161 additions and 97 deletions
@ -0,0 +1,37 @@ |
|||
<UserControl x:Class="W10SS_GUI.Controls.TogglesCategoryPanel" |
|||
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:local="clr-namespace:W10SS_GUI.Controls" |
|||
mc:Ignorable="d" |
|||
Name="togglesCategoryPanel"> |
|||
|
|||
<StackPanel Name="panelTogglesCategory" |
|||
Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Width}" |
|||
Tag="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Tag}" |
|||
Orientation="Vertical" |
|||
Background="{DynamicResource windowBackground}"> |
|||
|
|||
<StackPanel Name="panelTogglesHeader" |
|||
Height="{StaticResource togglesCategoryPanelHeaderHeight}" |
|||
Orientation="Horizontal"> |
|||
|
|||
<TextBlock Name="textTogglesHeader" |
|||
FontSize="{StaticResource togglesCategoryPanelHeaderFontSize}" |
|||
FontFamily="{StaticResource textTogglesHeaderFontFamily}" |
|||
Margin="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=HeaderMargin}" |
|||
VerticalAlignment="Center" |
|||
Text="{DynamicResource textHamburgerPrivacy}"/> |
|||
</StackPanel> |
|||
|
|||
<ScrollViewer Name="scrollTogglesCategory" |
|||
HorizontalScrollBarVisibility="Disabled" |
|||
VerticalScrollBarVisibility="Auto"> |
|||
|
|||
<StackPanel Name="Context" Orientation="Vertical" Margin="20" /> |
|||
|
|||
</ScrollViewer> |
|||
|
|||
</StackPanel> |
|||
</UserControl> |
@ -0,0 +1,44 @@ |
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows; |
|||
using System.Windows.Controls; |
|||
using System.Windows.Data; |
|||
using System.Windows.Documents; |
|||
using System.Windows.Input; |
|||
using System.Windows.Markup; |
|||
using System.Windows.Media; |
|||
using System.Windows.Media.Imaging; |
|||
using System.Windows.Navigation; |
|||
using System.Windows.Shapes; |
|||
|
|||
namespace W10SS_GUI.Controls |
|||
{ |
|||
/// <summary>
|
|||
/// Логика взаимодействия для TogglesCategoryPanel.xaml
|
|||
/// </summary>
|
|||
|
|||
public partial class TogglesCategoryPanel : UserControl |
|||
{ |
|||
public TogglesCategoryPanel() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
|
|||
|
|||
|
|||
public Thickness HeaderMargin |
|||
{ |
|||
get { return (Thickness)GetValue(HeaderMarginProperty); } |
|||
set { SetValue(HeaderMarginProperty, value); } |
|||
} |
|||
|
|||
// Using a DependencyProperty as the backing store for HeaderMargin. This enables animation, styling, binding, etc...
|
|||
public static readonly DependencyProperty HeaderMarginProperty = |
|||
DependencyProperty.Register("HeaderMargin", typeof(Thickness), typeof(TogglesCategoryPanel), new PropertyMetadata(default(Thickness))); |
|||
|
|||
} |
|||
} |
@ -1,15 +0,0 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:system="clr-namespace:System;assembly=mscorlib" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Resource"> |
|||
<system:String x:Key="tagCategoryPrivacy">categoryPrivacy</system:String> |
|||
<system:String x:Key="tagCategoryUi">categoryUi</system:String> |
|||
<system:String x:Key="tagCategoryOneDrive">categoryOneDrive</system:String> |
|||
<system:String x:Key="tagCategorySystem">categorySystem</system:String> |
|||
<system:String x:Key="tagCategoryStartMenu">categoryStartMenu</system:String> |
|||
<system:String x:Key="tagCategoryUwp">categoryUwp</system:String> |
|||
<system:String x:Key="tagCategoryWinGame">categoryWinGame</system:String> |
|||
<system:String x:Key="tagCategoryTaskScheduler">categoryTaskScheduler</system:String> |
|||
<system:String x:Key="tagCategoryDefender">categoryDefender</system:String> |
|||
<system:String x:Key="tagCategoryContextMenu">categoryContextMenu</system:String> |
|||
</ResourceDictionary> |
@ -1,56 +0,0 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|||
<!--#region Hamburger Button--> |
|||
<ControlTemplate x:Key="buttonHamburger" TargetType="Button"> |
|||
<StackPanel Name="buttonHamburger" Background="{DynamicResource ResourceKey=buttonHamburgerBackground}" Width="{DynamicResource ResourceKey=buttonHamburgerWidth}" |
|||
Height="{DynamicResource ResourceKey=buttonHamburgerHeight}" Orientation="Horizontal"> |
|||
<StackPanel Name="containerHamburger" Width="{DynamicResource ResourceKey=buttonHamburgerWidth}" Height="{DynamicResource ResourceKey=buttonHamburgerHeight}"> |
|||
<TextBlock Name="textButtonHamburger" Text="{TemplateBinding Button.Content}" FontFamily="Segoe MDL2 Assets" FontSize="{DynamicResource buttonHamburgerFontSize}" |
|||
Margin="10" Foreground="{DynamicResource ResourceKey=ColorWhite}"/> |
|||
</StackPanel> |
|||
</StackPanel> |
|||
<ControlTemplate.Triggers> |
|||
<Trigger Property="IsMouseOver" Value="True"> |
|||
<Setter TargetName="buttonHamburger" Property="Background" Value="{DynamicResource ResourceKey=buttonHamburgerHover}"/> |
|||
</Trigger> |
|||
<Trigger Property="IsPressed" Value="True"> |
|||
<Trigger.EnterActions> |
|||
<BeginStoryboard> |
|||
<Storyboard> |
|||
<ThicknessAnimation Storyboard.TargetName="containerHamburger" Storyboard.TargetProperty="Margin" Duration="0:0:0.5" From="0 0 0 0" |
|||
To="0 5 0 0" SpeedRatio="5" AutoReverse="True"/> |
|||
</Storyboard> |
|||
</BeginStoryboard> |
|||
</Trigger.EnterActions> |
|||
</Trigger> |
|||
</ControlTemplate.Triggers> |
|||
</ControlTemplate> |
|||
<!--#endregion Hamburger Button--> |
|||
|
|||
<!--#region Hamburger Category Buttons--> |
|||
<!--<ControlTemplate x:Key="buttonHamburgerCategory" TargetType="Button"> |
|||
<StackPanel Name="buttonHamburger" Background="{DynamicResource ResourceKey=buttonHamburgerBackground}" Width="{DynamicResource panelHamburgerMaxWidth}" |
|||
Height="{DynamicResource buttonHamburgerHeight}"> |
|||
<StackPanel Name="containerHamburger"> |
|||
<TextBlock Name="textButtonHamburger" Text="{TemplateBinding Button.Content}" FontFamily="Segoe MDL2 Assets" FontSize="{DynamicResource buttonHamburgerFontSize}" |
|||
Margin="10" Foreground="{DynamicResource ResourceKey=ColorWhite}"/> |
|||
</StackPanel> |
|||
</StackPanel> |
|||
<ControlTemplate.Triggers> |
|||
<Trigger Property="IsMouseOver" Value="True"> |
|||
<Setter TargetName="buttonHamburger" Property="Background" Value="{DynamicResource ResourceKey=buttonHamburgerHover}"/> |
|||
</Trigger> |
|||
<Trigger Property="IsPressed" Value="True"> |
|||
<Trigger.EnterActions> |
|||
<BeginStoryboard> |
|||
<Storyboard> |
|||
<ThicknessAnimation Storyboard.TargetName="containerHamburger" Storyboard.TargetProperty="Margin" Duration="0:0:0.5" From="0 0 0 0" |
|||
To="0 5 0 0" SpeedRatio="5" AutoReverse="True"/> |
|||
</Storyboard> |
|||
</BeginStoryboard> |
|||
</Trigger.EnterActions> |
|||
</Trigger> |
|||
</ControlTemplate.Triggers> |
|||
</ControlTemplate>--> |
|||
<!--#endregion Hamburger Category Buttons--> |
|||
</ResourceDictionary> |
@ -0,0 +1,11 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Resource" |
|||
xmlns:system="clr-namespace:System;assembly=mscorlib"> |
|||
|
|||
<FontFamily x:Key="textTogglesHeaderFontFamily">Calibri</FontFamily> |
|||
<FontFamily x:Key="textHamburgerCategoryButtonIcon">Segoe MDL2 Assets</FontFamily> |
|||
<FontFamily x:Key="textHamburgerCategoryFlashButtonIcon">Segoe MDL2 Assets</FontFamily> |
|||
<FontFamily x:Key="windowFontFamily">Segoe UI</FontFamily> |
|||
|
|||
</ResourceDictionary> |
@ -0,0 +1,16 @@ |
|||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:system="clr-namespace:System;assembly=mscorlib" |
|||
xmlns:local="clr-namespace:W10SS_GUI.Resource"> |
|||
|
|||
<system:String x:Key="tagCategoryPrivacy">Privacy & Telemetry</system:String> |
|||
<system:String x:Key="tagCategoryUi">UI & Personalization</system:String> |
|||
<system:String x:Key="tagCategoryOneDrive">OneDrive</system:String> |
|||
<system:String x:Key="tagCategorySystem">System</system:String> |
|||
<system:String x:Key="tagCategoryStartMenu">Start Menu</system:String> |
|||
<system:String x:Key="tagCategoryUwp">UWP Apps</system:String> |
|||
<system:String x:Key="tagCategoryWinGame">Windows Game Recording</system:String> |
|||
<system:String x:Key="tagCategoryTaskScheduler">Task Scheduler</system:String> |
|||
<system:String x:Key="tagCategoryDefender">Microsoft Defender</system:String> |
|||
<system:String x:Key="tagCategoryContextMenu">Context Menu</system:String> |
|||
</ResourceDictionary> |
Loading…
Reference in new issue