2026-04-01 00:16:36 +08:00
|
|
|
<Page x:Class="Ink_Canvas.Windows.SettingsViews2.Pages.NewSettingStartup"
|
2026-03-29 12:38:46 +08:00
|
|
|
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.SettingsViews2.Pages"
|
2026-04-01 00:46:40 +08:00
|
|
|
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
|
|
|
|
|
xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
|
|
|
|
|
xmlns:i18n="clr-namespace:Ink_Canvas.MarkupExtensions"
|
|
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
2026-03-29 12:38:46 +08:00
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
2026-03-29 17:39:52 +08:00
|
|
|
Title="启动">
|
2026-03-29 12:38:46 +08:00
|
|
|
|
2026-04-01 00:46:40 +08:00
|
|
|
<ScrollViewer Padding="20,0">
|
|
|
|
|
<!-- These styles can be referenced to create a consistent SettingsPage layout -->
|
|
|
|
|
<FrameworkElement.Resources>
|
|
|
|
|
<!-- Spacing between cards -->
|
|
|
|
|
<sys:Double x:Key="SettingsCardSpacing">4</sys:Double>
|
|
|
|
|
<!-- Style (inc. the correct spacing) of a section header -->
|
|
|
|
|
<Style x:Key="SettingsSectionHeaderTextBlockStyle"
|
|
|
|
|
BasedOn="{StaticResource BodyStrongTextBlockStyle}"
|
|
|
|
|
TargetType="TextBlock">
|
|
|
|
|
<Style.Setters>
|
|
|
|
|
<Setter Property="Margin" Value="1,30,0,6" />
|
|
|
|
|
</Style.Setters>
|
|
|
|
|
</Style>
|
|
|
|
|
</FrameworkElement.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<ikw:SimpleStackPanel MaxWidth="1000"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
Spacing="{StaticResource SettingsCardSpacing}">
|
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
|
|
|
Text="启动设置" />
|
|
|
|
|
<ui:SettingsCard Description="系统启动时自动运行软件"
|
|
|
|
|
Header="开机时运行">
|
|
|
|
|
<ui:SettingsCard.HeaderIcon>
|
|
|
|
|
<ui:FontIcon Glyph="" />
|
|
|
|
|
</ui:SettingsCard.HeaderIcon>
|
|
|
|
|
<ui:ToggleSwitch Name="ToggleSwitchRunAtStartup" Toggled="ToggleSwitchRunAtStartup_Toggled" />
|
|
|
|
|
</ui:SettingsCard>
|
|
|
|
|
</ikw:SimpleStackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ScrollViewer>
|
2026-03-29 17:39:52 +08:00
|
|
|
</Page>
|