mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-23 11:26:54 +00:00
87 lines
3.7 KiB
XML
87 lines
3.7 KiB
XML
<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"
|
|
d:DesignHeight="600"
|
|
d:DesignWidth="800"
|
|
x:DataType="vms:CheckUpdateViewModel"
|
|
mc:Ignorable="d">
|
|
|
|
<DockPanel Margin="{StaticResource Margin8}">
|
|
<Border
|
|
Margin="{StaticResource Margin4}"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Bottom"
|
|
Theme="{DynamicResource CardBorder}">
|
|
|
|
<StackPanel
|
|
Margin="{StaticResource Margin4}"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
|
|
<TextBlock
|
|
Margin="{StaticResource Margin4}"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Text="{x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" />
|
|
<ToggleSwitch
|
|
x:Name="togEnableCheckPreReleaseUpdate"
|
|
Margin="{StaticResource Margin4}"
|
|
HorizontalAlignment="Left" />
|
|
|
|
<Button
|
|
x:Name="btnCheckUpdate"
|
|
Width="100"
|
|
Margin="{StaticResource Margin4}"
|
|
Content="{x:Static resx:ResUI.menuCheckUpdate}" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border
|
|
Margin="{StaticResource Margin4}"
|
|
VerticalAlignment="Center"
|
|
Theme="{DynamicResource CardBorder}">
|
|
|
|
<ListBox
|
|
x:Name="lstCheckUpdates"
|
|
BorderThickness="1"
|
|
ItemsSource="{Binding CheckUpdateModels}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Panel Width="500" VerticalAlignment="Center">
|
|
<Grid ColumnDefinitions="1*,1*,3*" RowDefinitions="Auto">
|
|
<ToggleSwitch
|
|
x:Name="togAutoRefresh"
|
|
Grid.Column="0"
|
|
Margin="{StaticResource Margin4}"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding IsSelected}" />
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding CoreType}" />
|
|
<TextBlock
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding Remarks}"
|
|
TextWrapping="WrapWithOverflow" />
|
|
</Grid>
|
|
</Panel>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ListBox>
|
|
</Border>
|
|
</DockPanel>
|
|
</UserControl>
|