mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-25 22:29:47 +08:00
63 lines
3.4 KiB
XML
63 lines
3.4 KiB
XML
<Page x:Class="BetterGenshinImpact.View.Pages.ScriptControlPage"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:local="clr-namespace:BetterGenshinImpact.View.Pages"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:pages="clr-namespace:BetterGenshinImpact.ViewModel.Pages"
|
||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||
Title="HomePage"
|
||
d:DataContext="{d:DesignInstance Type=pages:ScriptControlViewModel}"
|
||
d:DesignHeight="850"
|
||
d:DesignWidth="800"
|
||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||
mc:Ignorable="d">
|
||
<Grid>
|
||
<StackPanel Margin="42,16,42,12">
|
||
<ui:TextBlock Margin="0,0,0,8"
|
||
FontTypography="BodyStrong"
|
||
Text="脚本控制设置" />
|
||
<ui:CardExpander Margin="0,0,0,12"
|
||
ContentPadding="0"
|
||
Icon="{ui:SymbolIcon CodeJsRectangle16}">
|
||
<ui:CardExpander.Header>
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<ui:TextBlock Grid.Row="0"
|
||
Grid.Column="0"
|
||
FontTypography="Body"
|
||
Text="执行脚本"
|
||
TextWrapping="Wrap" />
|
||
<ui:TextBlock Grid.Row="1"
|
||
Grid.Column="0"
|
||
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
||
TextWrapping="Wrap">
|
||
<ui:TextBlock.Inlines>
|
||
<Run Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}" Text="实验性功能,仅支持JS、TS脚本。" />
|
||
<Hyperlink Command="{Binding GoToAutoScriptUrlCommand}" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
|
||
<Run Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}" Text="点击查看使用教程" />
|
||
</Hyperlink>
|
||
</ui:TextBlock.Inlines>
|
||
</ui:TextBlock>
|
||
<ui:Button Grid.Row="0"
|
||
Grid.RowSpan="2"
|
||
Grid.Column="1"
|
||
Margin="0,0,24,0"
|
||
Command="{Binding SwitchAutoScriptCommand}"
|
||
Content="启动" />
|
||
</Grid>
|
||
</ui:CardExpander.Header>
|
||
</ui:CardExpander>
|
||
</StackPanel>
|
||
</Grid>
|
||
</Page> |