Files
better-genshin-impact/BetterGenshinImpact/View/MainWindow.xaml
2023-09-26 23:57:09 +08:00

34 lines
1.8 KiB
XML

<Window x:Class="BetterGenshinImpact.View.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:viewModel="clr-namespace:BetterGenshinImpact.ViewModel"
mc:Ignorable="d"
Title="MainWindow" Height="200" Width="300">
<Window.DataContext>
<viewModel:MainWindowViewModel />
</Window.DataContext>
<b:Interaction.Triggers>
<b:EventTrigger EventName="Loaded">
<b:InvokeCommandAction
CommandParameter="{Binding}"
Command="{Binding LoadedCommand}" />
</b:EventTrigger>
<b:EventTrigger EventName="Closed">
<b:InvokeCommandAction
CommandParameter="{Binding}"
Command="{Binding ClosedCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
<Grid>
<ComboBox x:Name="CboCaptureType" HorizontalAlignment="Left" Height="23" Margin="10,20,0,0"
VerticalAlignment="Top" Width="252" ItemsSource="{Binding ModeNames}"
SelectedItem="{Binding SelectedMode, Mode=TwoWay}" />
<Button x:Name="StartCaptureTest" Content="测试图像捕获" Command="{Binding StartCaptureTestCommand}" HorizontalAlignment="Left" Margin="10,55,0,0" VerticalAlignment="Top" Height="22" Width="252"/>
<Button x:Name="StartTrigger" Content="启动触发器(自动剧情、钓鱼)" Command="{Binding StartTriggerCommand}" HorizontalAlignment="Left" Margin="10,106,0,0" VerticalAlignment="Top" Height="33" Width="252" />
</Grid>
</Window>