From e6c57fcac026fb64c4d379b7af092ef60fd960ac Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sat, 6 Sep 2025 19:04:37 +0800 Subject: [PATCH] Allow single select --- .../Views/ProfilesSelectWindow.axaml | 115 ++++++++++++++---- .../Views/ProfilesSelectWindow.axaml.cs | 19 +++ v2rayN/v2rayN/Views/ProfilesSelectWindow.xaml | 1 + .../v2rayN/Views/ProfilesSelectWindow.xaml.cs | 18 +++ 4 files changed, 126 insertions(+), 27 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/ProfilesSelectWindow.axaml b/v2rayN/v2rayN.Desktop/Views/ProfilesSelectWindow.axaml index ada7a7ca..9b41bc90 100644 --- a/v2rayN/v2rayN.Desktop/Views/ProfilesSelectWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/ProfilesSelectWindow.axaml @@ -2,15 +2,15 @@ x:Class="v2rayN.Desktop.Views.ProfilesSelectWindow" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:conv="using:v2rayN.Desktop.Converters" 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" - xmlns:conv="using:v2rayN.Desktop.Converters" - x:DataType="vms:ProfilesSelectViewModel" + Title="{x:Static resx:ResUI.TbSelectProfile}" Width="800" Height="450" - Title="{x:Static resx:ResUI.TbSelectProfile}" + x:DataType="vms:ProfilesSelectViewModel" mc:Ignorable="d"> @@ -18,16 +18,27 @@ - - -