mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-13 03:34:55 +08:00
94 lines
3.7 KiB
XML
94 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<UserControl
|
|
x:Class="BetterLyrics.WinUI3.Controls.RemoteServerConfigControl"
|
|
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:local="using:BetterLyrics.WinUI3.Controls"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<ScrollViewer>
|
|
<StackPanel Width="400" Spacing="16">
|
|
<ProgressBar
|
|
x:Name="ProgressBar"
|
|
IsIndeterminate="True"
|
|
Visibility="Collapsed" />
|
|
<InfoBar
|
|
x:Name="ErrorInfoBar"
|
|
IsClosable="True"
|
|
IsOpen="False"
|
|
Severity="Error" />
|
|
|
|
<TextBox
|
|
x:Name="NameBox"
|
|
x:Uid="RemoteServerConfigControlName"
|
|
TextWrapping="Wrap" />
|
|
|
|
<StackPanel x:Name="RemoteFieldsPanel" Spacing="16">
|
|
<Grid ColumnDefinitions="*, Auto" ColumnSpacing="12">
|
|
<TextBox
|
|
x:Name="HostBox"
|
|
x:Uid="RemoteServerConfigControlServerAddress"
|
|
Grid.Column="0"
|
|
InputScope="Url"
|
|
PlaceholderText="192.168.1.x"
|
|
TextWrapping="Wrap" />
|
|
|
|
<NumberBox
|
|
x:Name="PortBox"
|
|
x:Uid="RemoteServerConfigControlPort"
|
|
Grid.Column="1"
|
|
MinWidth="100"
|
|
LargeChange="10"
|
|
SmallChange="1"
|
|
SpinButtonPlacementMode="Inline"
|
|
ToolTipService.ToolTip="80"
|
|
Value="80" />
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
<Grid ColumnDefinitions="*, Auto" ColumnSpacing="8">
|
|
<TextBox
|
|
x:Name="PathBox"
|
|
x:Uid="RemoteServerConfigControlPath"
|
|
Grid.Column="0"
|
|
TextChanged="PathBox_TextChanged"
|
|
TextWrapping="Wrap" />
|
|
|
|
<Button
|
|
x:Name="BrowseButton"
|
|
x:Uid="RemoteServerConfigControlBrowse"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Bottom"
|
|
Click="BrowseButton_Click"
|
|
Visibility="Collapsed" />
|
|
</Grid>
|
|
|
|
<InfoBar
|
|
x:Name="PathWarningBar"
|
|
IsClosable="False"
|
|
IsOpen="False"
|
|
Severity="Warning" />
|
|
|
|
<StackPanel x:Name="AuthFieldsPanel" Spacing="16">
|
|
<Grid ColumnDefinitions="*, *" ColumnSpacing="12">
|
|
<TextBox
|
|
x:Name="UserBox"
|
|
x:Uid="RemoteServerConfigControlUsername"
|
|
Grid.Column="0"
|
|
TextWrapping="Wrap" />
|
|
|
|
<PasswordBox
|
|
x:Name="PwdBox"
|
|
x:Uid="RemoteServerConfigControlPassword"
|
|
Grid.Column="1"
|
|
PasswordRevealMode="Peek" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</UserControl>
|