v2rayN/v2rayN/v2rayN.Desktop/Views/QrcodeView.axaml
2dust dc4611a258
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run
Adjust qrcode width
2025-09-26 20:36:27 +08:00

33 lines
1.1 KiB
XML

<UserControl
x:Class="v2rayN.Desktop.Views.QrcodeView"
xmlns="https://github.com/avaloniaui"
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:sys="clr-namespace:System;assembly=netstandard"
d:DesignHeight="600"
d:DesignWidth="600"
mc:Ignorable="d">
<UserControl.Resources>
<sys:Double x:Key="QrcodeWidth">400</sys:Double>
</UserControl.Resources>
<Grid Margin="32" RowDefinitions="Auto,Auto">
<Image
Name="imgQrcode"
Width="{StaticResource QrcodeWidth}"
Height="{StaticResource QrcodeWidth}" />
<TextBox
x:Name="txtContent"
Grid.Row="1"
Width="{StaticResource QrcodeWidth}"
MaxHeight="100"
Margin="{StaticResource MarginTb8}"
VerticalAlignment="Center"
IsReadOnly="True"
TextWrapping="WrapWithOverflow" />
</Grid>
</UserControl>