From 633963be44e203dc316aed79fbd1f7869baebd62 Mon Sep 17 00:00:00 2001 From: wenyongda Date: Thu, 19 Jun 2025 17:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B5=E8=AF=9D=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=BB=91=E5=AE=9A=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WinUINotes/MainWindow.xaml | 1 + WinUINotes/MainWindow.xaml.cs | 3 + WinUINotes/Model/PhoneAppItem.cs | 21 ++ WinUINotes/PhoneAppBinderPage.xaml | 75 +++++++ WinUINotes/PhoneAppBinderPage.xaml.cs | 288 ++++++++++++++++++++++++++ WinUINotes/WinUINotes.csproj | 5 + 6 files changed, 393 insertions(+) create mode 100644 WinUINotes/Model/PhoneAppItem.cs create mode 100644 WinUINotes/PhoneAppBinderPage.xaml create mode 100644 WinUINotes/PhoneAppBinderPage.xaml.cs diff --git a/WinUINotes/MainWindow.xaml b/WinUINotes/MainWindow.xaml index cdf7acd..c2e6afc 100644 --- a/WinUINotes/MainWindow.xaml +++ b/WinUINotes/MainWindow.xaml @@ -22,6 +22,7 @@ + diff --git a/WinUINotes/MainWindow.xaml.cs b/WinUINotes/MainWindow.xaml.cs index f52d973..6449aa3 100644 --- a/WinUINotes/MainWindow.xaml.cs +++ b/WinUINotes/MainWindow.xaml.cs @@ -52,6 +52,9 @@ namespace WinUINotes case "FileUploadPage": ContentFrame.Navigate(typeof(FileUploadPage)); break; + case "PhoneAppBinderPage": + ContentFrame.Navigate(typeof(PhoneAppBinderPage)); + break; // Ӹ case } } diff --git a/WinUINotes/Model/PhoneAppItem.cs b/WinUINotes/Model/PhoneAppItem.cs new file mode 100644 index 0000000..480477c --- /dev/null +++ b/WinUINotes/Model/PhoneAppItem.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WinUINotes.Model +{ + public class PhoneAppItem + { + public string AppName { get; set; } + + public List AppUrls { get; set; } + + // 这个属性用于在ListView中显示多个网站 + public string AppUrlsDisplayString + { + get => AppUrls != null && AppUrls.Count > 0 ? string.Join(", ", AppUrls) : "无网站"; + } + } +} diff --git a/WinUINotes/PhoneAppBinderPage.xaml b/WinUINotes/PhoneAppBinderPage.xaml new file mode 100644 index 0000000..a512f28 --- /dev/null +++ b/WinUINotes/PhoneAppBinderPage.xaml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + +