Files
MaaAssistantArknights/src/MeoAsstGui/Views/MainFunctionView.xaml
2021-11-22 23:17:00 +08:00

33 lines
2.0 KiB
XML

<UserControl x:Class="MeoAsstGui.MainFunctionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MeoAsstGui"
xmlns:s="https://github.com/canton7/Stylet"
mc:Ignorable="d"
Height="460" Width="500">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="280" />
<RowDefinition Height="100" />
<RowDefinition Height="80" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center">
<local:SanityParamSettingUserControl Width="350" />
<local:VisitParamSettingUserControl />
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
<Button Command="{s:Action StartSanity}" Content="开始刷理智" Margin="10" HorizontalAlignment="Center" Width="120" Height="50" />
<Button Command="{s:Action Visit}" Content="访问好友" Margin="10" HorizontalAlignment="Center" Width="120" Height="50" />
<Button Command="{s:Action Stop}" Content="停止" Margin="10" HorizontalAlignment="Center" Width="120" Height="50" />
</StackPanel>
<TextBlock Grid.Row="2" Style="{StaticResource TextBlockDefaultBold}" HorizontalAlignment="Left" Text="{Binding RunStatus}"></TextBlock>
<TextBlock Grid.Row="2" Style="{StaticResource TextBlockDefaultBold}" HorizontalAlignment="Center" Text="{Binding ExecInfo}"></TextBlock>
<ScrollViewer Grid.Row="2" HorizontalAlignment="Right">
<TextBlock Style="{StaticResource TextBlockDefault}" Text="{Binding StageDropsInfo}"></TextBlock>
</ScrollViewer>
</Grid>
</UserControl>