487 lines
39 KiB
XML
487 lines
39 KiB
XML
<UserControl x:Class="Ink_Canvas.Windows.SettingsViews.StartupPanel"
|
|
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:Ink_Canvas.Windows.SettingsViews"
|
|
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="950" d:DesignWidth="640">
|
|
<UserControl.Resources>
|
|
<!-- 开关样式模板 -->
|
|
<Style x:Key="ToggleSwitchStyle" TargetType="Border">
|
|
<Setter Property="Width" Value="48"/>
|
|
<Setter Property="Height" Value="25"/>
|
|
<Setter Property="CornerRadius" Value="12"/>
|
|
<Setter Property="Padding" Value="3,0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
<Setter Property="Margin" Value="0,0,15,0"/>
|
|
</Style>
|
|
<!-- 下拉框样式模板 -->
|
|
<Style x:Key="ComboBoxStyle" TargetType="ComboBox">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="#e6e6e6"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei UI"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Foreground" Value="#2e3436"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBox">
|
|
<Grid>
|
|
<Border x:Name="Border" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="4">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Grid.Column="0"
|
|
Margin="{TemplateBinding Padding}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"/>
|
|
<Path x:Name="Arrow" Grid.Column="1"
|
|
Data="M 0 0 L 4 4 L 8 0 Z"
|
|
Fill="#9a9996"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,8,0"
|
|
Width="8"
|
|
Height="4"/>
|
|
<Popup x:Name="Popup"
|
|
Placement="Bottom"
|
|
PlacementTarget="{Binding ElementName=Border}"
|
|
AllowsTransparency="True"
|
|
PopupAnimation="Fade"
|
|
StaysOpen="False">
|
|
<Border Background="White"
|
|
BorderBrush="#e6e6e6"
|
|
BorderThickness="1"
|
|
CornerRadius="4"
|
|
MaxHeight="200">
|
|
<ScrollViewer>
|
|
<ItemsPresenter/>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="#3584e4"/>
|
|
</Trigger>
|
|
<Trigger Property="IsFocused" Value="True">
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="#3584e4"/>
|
|
</Trigger>
|
|
<Trigger Property="IsDropDownOpen" Value="True">
|
|
<Setter TargetName="Arrow" Property="Data" Value="M 0 4 L 4 0 L 8 4 Z"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!-- ComboBoxItem样式 -->
|
|
<Style x:Key="ComboBoxItemStyle" TargetType="ComboBoxItem">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="Foreground" Value="#2e3436"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei UI"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBoxItem">
|
|
<Border x:Name="Border"
|
|
Background="{TemplateBinding Background}"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="#f0f0f0"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="#e8f0fe"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
<ScrollViewer ScrollChanged="ScrollViewerEx_ScrollChanged" IsManipulationEnabled="True" Name="ScrollViewerEx" IsDeferredScrollingEnabled="True" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" IsTabStop="False" TabIndex="-1" Margin="0,0,2,2">
|
|
<StackPanel Margin="60,12,60,24">
|
|
<!-- 窗口设置 -->
|
|
<Border BorderBrush="#e6e6e6" BorderThickness="1.25,1.25,1.25,4" CornerRadius="8">
|
|
<StackPanel Orientation="Vertical">
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="窗口无焦点模式" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="窗口失去焦点时仍可接收输入" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchNoFocusMode" Style="{StaticResource ToggleSwitchStyle}" Background="#e1e1e1">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="窗口无边框模式" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="隐藏窗口边框,提供更沉浸的体验" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchWindowMode" Style="{StaticResource ToggleSwitchStyle}" Background="#3584e4">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="窗口置顶" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="窗口始终显示在其他窗口之上" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchAlwaysOnTop" Style="{StaticResource ToggleSwitchStyle}" Background="#3584e4">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54" x:Name="UIAccessTopMostPanel" Visibility="Collapsed">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="UIA置顶" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="使用UIA方式实现置顶,需要管理员权限" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchUIAccessTopMost" Style="{StaticResource ToggleSwitchStyle}" Background="#e1e1e1">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 更新设置 -->
|
|
<Border Margin="0,25,0,0" BorderBrush="#e6e6e6" BorderThickness="1.25,1.25,1.25,4" CornerRadius="8">
|
|
<StackPanel Orientation="Vertical">
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="自动检查更新" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="定期检查是否有新版本可用" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchIsAutoUpdate" Style="{StaticResource ToggleSwitchStyle}" Background="#3584e4">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="静默更新" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="在软件不使用时自动安装更新,无需手动操作" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchIsAutoUpdateWithSilence" Style="{StaticResource ToggleSwitchStyle}" Background="#3584e4">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="更新通道" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="选择更新通道:稳定版提供可靠更新,测试版提供新功能抢先体验" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<WrapPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0">
|
|
<Border x:Name="UpdateChannelReleaseBorder" Padding="13,7" CornerRadius="8" Background="#e1e1e1" Cursor="Hand" Tag="UpdateChannel_Release" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" FontWeight="Bold" Text="稳定版"/>
|
|
</Border>
|
|
<Border x:Name="UpdateChannelBetaBorder" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="UpdateChannel_Beta" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="测试版"/>
|
|
</Border>
|
|
</WrapPanel>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="手动更新" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="点击后立即检查并下载最新版本" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Button x:Name="ManualUpdateButton" Content="手动更新" Width="120" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" Padding="12,6"/>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="版本修复" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="根据当前选择的通道下载最新版本并执行安装,可用于修复损坏的安装" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Button x:Name="FixVersionButton" Content="版本修复" Width="120" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" Padding="12,6"/>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="历史版本回滚" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="回滚到之前的版本" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Button x:Name="HistoryRollbackButton" Content="历史版本回滚" Width="120" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" Padding="12,6"/>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Margin="18,12,15,12" x:Name="AutoUpdateTimePeriodBlock">
|
|
<StackPanel>
|
|
<TextBlock Text="静默更新时间段" FontSize="15" FontWeight="Bold" Foreground="#2e3436" Margin="0,0,0,12"/>
|
|
<StackPanel>
|
|
<StackPanel Orientation="Vertical" Margin="0,0,0,12">
|
|
<TextBlock Text="起始时间" FontSize="14" Foreground="#2e3436" Margin="0,0,0,8"/>
|
|
<WrapPanel Orientation="Horizontal" x:Name="AutoUpdateWithSilenceStartTimePanel">
|
|
<Border x:Name="StartTime00Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="00" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="00:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime01Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="01" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="01:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime02Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="02" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="02:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime03Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="03" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="03:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime04Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="04" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="04:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime05Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="05" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="05:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime06Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="06" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="06:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime07Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="07" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="07:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime08Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="08" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="08:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime09Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="09" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="09:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime10Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="10" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="10:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime11Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="11" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="11:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime12Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="12" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="12:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime13Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="13" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="13:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime14Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="14" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="14:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime15Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="15" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="15:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime16Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="16" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="16:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime17Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="17" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="17:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime18Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="18" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="18:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime19Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="19" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="19:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime20Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="20" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="20:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime21Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="21" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="21:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime22Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="22" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="22:00"/>
|
|
</Border>
|
|
<Border x:Name="StartTime23Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="23" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="23:00"/>
|
|
</Border>
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Vertical" Margin="0,0,0,0">
|
|
<TextBlock Text="终止时间" FontSize="14" Foreground="#2e3436" Margin="0,0,0,8"/>
|
|
<WrapPanel Orientation="Horizontal" x:Name="AutoUpdateWithSilenceEndTimePanel">
|
|
<Border x:Name="EndTime00Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="00" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="00:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime01Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="01" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="01:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime02Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="02" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="02:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime03Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="03" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="03:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime04Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="04" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="04:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime05Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="05" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="05:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime06Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="06" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="06:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime07Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="07" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="07:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime08Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="08" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="08:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime09Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="09" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="09:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime10Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="10" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="10:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime11Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="11" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="11:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime12Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="12" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="12:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime13Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="13" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="13:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime14Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="14" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="14:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime15Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="15" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="15:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime16Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="16" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="16:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime17Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="17" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="17:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime18Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="18" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="18:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime19Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="19" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="19:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime20Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="20" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="20:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime21Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="21" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="21:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime22Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="22" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="22:00"/>
|
|
</Border>
|
|
<Border x:Name="EndTime23Border" Padding="13,7" CornerRadius="8" Cursor="Hand" Tag="23" Margin="0,0,8,8">
|
|
<TextBlock Foreground="#2e3436" FontSize="14" Text="23:00"/>
|
|
</Border>
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<TextBlock Margin="0,8,0,0" Text="若终止时间小于起始时间,即将终止时间视为第二天的时间。若起始时间与终止时间相同,即视为全天候时间。"
|
|
TextWrapping="Wrap" Foreground="#9a9996" FontSize="11"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 启动设置 -->
|
|
<Border Margin="0,25,0,0" BorderBrush="#e6e6e6" BorderThickness="1.25,1.25,1.25,4" CornerRadius="8">
|
|
<StackPanel Orientation="Vertical">
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="开机时运行" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="系统启动时自动运行软件" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchRunAtStartup" Style="{StaticResource ToggleSwitchStyle}" Background="#3584e4">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Border Height="1" Background="#ebebeb"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" Margin="18,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="开机运行后收纳到侧边栏" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="开机启动后自动收纳到侧边栏" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchFoldAtStartup" Style="{StaticResource ToggleSwitchStyle}" Background="#3584e4">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 模式设置 -->
|
|
<Border Margin="0,25,0,0" BorderBrush="#e6e6e6" BorderThickness="1.25,1.25,1.25,4" CornerRadius="8">
|
|
<StackPanel Orientation="Vertical" Margin="18,18,18,18">
|
|
<TextBlock Text="选择软件运行模式。仅PPT模式下,软件将完全隐藏,仅在PPT放映时出现。(实验性功能,可能不稳定。)"
|
|
TextWrapping="Wrap" Foreground="#9a9996" FontSize="11" Margin="0,0,0,12"/>
|
|
<Grid Height="54">
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
<TextBlock Foreground="#2e3436" FontSize="14.5" Text="仅PPT模式" HorizontalAlignment="Left"/>
|
|
<TextBlock Foreground="#9a9996" FontSize="11" Margin="0,3.5,0,0" Text="启用后,软件将完全隐藏,仅在PPT放映时出现" HorizontalAlignment="Left"/>
|
|
</StackPanel>
|
|
<Border x:Name="ToggleSwitchMode" Style="{StaticResource ToggleSwitchStyle}" Background="#e1e1e1">
|
|
<Border Width="19" Height="19" Background="White" CornerRadius="10" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" Direction="-45" Color="Black" Opacity="0.3" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 插件管理 -->
|
|
<Border Margin="0,25,0,0" BorderBrush="#e6e6e6" BorderThickness="1.25,1.25,1.25,4" CornerRadius="8">
|
|
<StackPanel Orientation="Vertical" Margin="18,18,18,18">
|
|
<TextBlock Text="通过插件扩展InkCanvas的功能。您可以启用或禁用插件,或加载自定义插件。"
|
|
TextWrapping="Wrap" Foreground="#9a9996" FontSize="11" Margin="0,0,0,12"/>
|
|
<Button x:Name="BtnOpenPluginManager" Content="打开插件管理器"
|
|
HorizontalAlignment="Left" Padding="15,5"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</UserControl>
|