v2rayN/v2rayN/v2rayN.Desktop/Views/QrcodeView.axaml

34 lines
1.1 KiB
Text
Raw Normal View History

2025-02-20 10:34:25 +00:00
<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"
2025-09-21 06:35:49 +00:00
xmlns:sys="clr-namespace:System;assembly=netstandard"
d:DesignHeight="600"
d:DesignWidth="600"
mc:Ignorable="d">
2025-09-21 06:35:49 +00:00
<UserControl.Resources>
<sys:Double x:Key="QrcodeWidth">500</sys:Double>
</UserControl.Resources>
2025-02-20 10:34:25 +00:00
<Grid Margin="32" RowDefinitions="Auto,Auto">
<Image
Name="imgQrcode"
2025-09-21 06:35:49 +00:00
Width="{StaticResource QrcodeWidth}"
Height="{StaticResource QrcodeWidth}" />
<TextBox
x:Name="txtContent"
Grid.Row="1"
2025-09-21 06:35:49 +00:00
Width="{StaticResource QrcodeWidth}"
2025-03-01 11:56:52 +00:00
MaxHeight="100"
2025-02-20 10:34:25 +00:00
Margin="{StaticResource MarginTb8}"
VerticalAlignment="Center"
IsReadOnly="True"
2025-03-01 11:56:52 +00:00
TextWrapping="WrapWithOverflow" />
</Grid>
2025-02-20 10:34:25 +00:00
</UserControl>