mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
106 lines
3.5 KiB
XML
106 lines
3.5 KiB
XML
<UserControl
|
|
x:Class="MeoAsstGui.ConnectSettingsUserControl"
|
|
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:dd="urn:gong-wpf-dragdrop"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
xmlns:vm="clr-namespace:MeoAsstGui;assembly=MeoAsstGui"
|
|
d:DataContext="{d:DesignInstance {x:Type vm:SettingsViewModel}}"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="550"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150" />
|
|
<ColumnDefinition Width="270" />
|
|
<ColumnDefinition Width="80" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="3"
|
|
Margin="10"
|
|
Block.TextAlignment="Center"
|
|
Style="{StaticResource TextBlockDefault}"
|
|
Text="{DynamicResource ADBTip}"
|
|
TextWrapping="Wrap" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="10"
|
|
Block.TextAlignment="Center"
|
|
Style="{StaticResource TextBlockDefault}"
|
|
Text="{DynamicResource ADBPath}"
|
|
TextWrapping="Wrap" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="250"
|
|
Height="30"
|
|
Margin="10"
|
|
Text="{Binding AdbPath}" />
|
|
<Button
|
|
Grid.Row="1"
|
|
Grid.Column="3"
|
|
Width="60"
|
|
Height="30"
|
|
Margin="10"
|
|
HorizontalAlignment="Left"
|
|
Command="{s:Action SelectFile}"
|
|
Content="{DynamicResource Select}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="10"
|
|
Block.TextAlignment="Center"
|
|
Style="{StaticResource TextBlockDefault}"
|
|
Text="{DynamicResource ConnectionAddress}"
|
|
TextWrapping="Wrap" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="250"
|
|
Height="30"
|
|
Margin="10"
|
|
Text="{Binding ConnectAddress}"
|
|
ToolTip="{DynamicResource ConnectionAddressTip}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="10"
|
|
Block.TextAlignment="Center"
|
|
Style="{StaticResource TextBlockDefault}"
|
|
Text="{DynamicResource ConnectionPreset}"
|
|
TextWrapping="Wrap" />
|
|
<ComboBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Width="250"
|
|
Height="30"
|
|
Margin="10"
|
|
DisplayMemberPath="Display"
|
|
ItemsSource="{Binding ConnectConfigList}"
|
|
SelectedValue="{Binding ConnectConfig}"
|
|
SelectedValuePath="Value" />
|
|
|
|
<CheckBox
|
|
Grid.Row="4"
|
|
Grid.ColumnSpan="4"
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding RetryOnDisconnected}"
|
|
Content="{DynamicResource RetryOnDisconnected}"
|
|
ToolTip="{DynamicResource RetryOnDisconnectedTip}"
|
|
HorizontalAlignment="Left" />
|
|
</Grid>
|
|
</UserControl> |