Files
v2rayN/v2rayN/v2rayN/Views/QrcodeView.xaml
2025-10-16 12:18:14 +08:00

56 lines
2.1 KiB
XML

<UserControl
x:Class="v2rayN.Views.QrcodeView"
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
d:DesignHeight="600"
d:DesignWidth="600"
Style="{StaticResource ViewGlobal}"
mc:Ignorable="d">
<UserControl.Resources>
<sys:Double x:Key="QrcodeWidth">400</sys:Double>
</UserControl.Resources>
<DockPanel Margin="{StaticResource Margin8}">
<StackPanel Margin="{StaticResource Margin8}" DockPanel.Dock="Bottom">
<Button
Width="100"
HorizontalAlignment="Right"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
Content="{x:Static resx:ResUI.menuClose}"
IsCancel="True"
IsDefault="True"
Style="{StaticResource DefButton}" />
</StackPanel>
<Grid Margin="{StaticResource Margin8}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image
x:Name="imgQrcode"
Grid.Row="0"
Width="{StaticResource QrcodeWidth}"
Height="{StaticResource QrcodeWidth}"
Stretch="UniformToFill" />
<TextBox
x:Name="txtContent"
Grid.Row="1"
Width="{StaticResource QrcodeWidth}"
Margin="0,8"
VerticalAlignment="Center"
IsReadOnly="True"
MaxLines="3"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto" />
</Grid>
</DockPanel>
</UserControl>