v2rayN/v2rayN/v2rayN.Desktop/Views/CheckUpdateView.axaml

83 lines
3.4 KiB
Text
Raw Normal View History

2024-09-05 05:29:25 +00:00
<UserControl
x:Class="v2rayN.Desktop.Views.CheckUpdateView"
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:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
2024-10-19 06:30:14 +00:00
d:DesignHeight="600"
2024-09-05 05:29:25 +00:00
d:DesignWidth="800"
x:DataType="vms:CheckUpdateViewModel"
mc:Ignorable="d">
2024-10-05 06:53:34 +00:00
<DockPanel Classes="Margin8">
2024-10-04 08:01:36 +00:00
<StackPanel
2024-10-19 06:30:14 +00:00
HorizontalAlignment="Center"
2024-10-04 08:01:36 +00:00
Classes="Margin8"
DockPanel.Dock="Bottom"
Orientation="Horizontal">
<TextBlock
HorizontalAlignment="Left"
VerticalAlignment="Center"
Classes="Margin8"
Text="{x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" />
<ToggleSwitch
x:Name="togEnableCheckPreReleaseUpdate"
HorizontalAlignment="Left"
Classes="Margin8" />
2024-09-05 05:29:25 +00:00
2024-10-04 08:01:36 +00:00
<Button
x:Name="btnCheckUpdate"
Width="100"
Classes="Margin8"
Content="{x:Static resx:ResUI.menuCheckUpdate}" />
</StackPanel>
<StackPanel>
<ListBox
x:Name="lstCheckUpdates"
BorderThickness="1"
2024-11-04 06:15:59 +00:00
ItemsSource="{Binding CheckUpdateModels}">
2024-10-04 08:01:36 +00:00
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border
Width="500"
Height="80"
2024-12-19 02:23:46 +00:00
Margin="-8"
2024-10-04 08:01:36 +00:00
VerticalAlignment="Center"
Theme="{StaticResource CardBorder}">
2024-12-23 06:28:33 +00:00
<Grid ColumnDefinitions="1*,1*,3*" RowDefinitions="Auto">
2024-10-04 08:01:36 +00:00
<ToggleSwitch
x:Name="togAutoRefresh"
Grid.Column="0"
Margin="8"
HorizontalAlignment="Left"
2024-10-19 06:30:14 +00:00
VerticalAlignment="Top"
2024-10-07 12:10:00 +00:00
IsChecked="{Binding IsSelected}" />
2024-10-04 08:01:36 +00:00
<TextBlock
Grid.Column="1"
2024-10-19 06:30:14 +00:00
HorizontalAlignment="Left"
2024-10-04 08:01:36 +00:00
VerticalAlignment="Center"
2024-10-07 12:10:00 +00:00
Text="{Binding CoreType}" />
2024-10-04 08:01:36 +00:00
<TextBlock
Grid.Column="2"
2024-10-19 06:30:14 +00:00
HorizontalAlignment="Left"
2024-10-04 08:01:36 +00:00
VerticalAlignment="Center"
2024-10-07 12:10:00 +00:00
Text="{Binding Remarks}"
2024-10-04 08:01:36 +00:00
TextWrapping="WrapWithOverflow" />
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ListBox>
</StackPanel>
</DockPanel>
2024-09-05 05:29:25 +00:00
</UserControl>