From ad1adbff15d6142f30d03dbda90926d90740f93b Mon Sep 17 00:00:00 2001
From: woni <320753691@qq.com>
Date: Wed, 28 Aug 2024 22:17:27 +0800
Subject: [PATCH] add app list view
---
GZStudio/Views/AppListPage.xaml | 28 +++++++++++++++++++++-
GZStudio/Views/AppListPage.xaml.cs | 37 +++++++++++++++++++++++++++++-
README.md | 0
3 files changed, 63 insertions(+), 2 deletions(-)
create mode 100644 README.md
diff --git a/GZStudio/Views/AppListPage.xaml b/GZStudio/Views/AppListPage.xaml
index 5830b09..a076775 100644
--- a/GZStudio/Views/AppListPage.xaml
+++ b/GZStudio/Views/AppListPage.xaml
@@ -4,9 +4,35 @@
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:local="using:GZStudio.Views"
mc:Ignorable="d">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GZStudio/Views/AppListPage.xaml.cs b/GZStudio/Views/AppListPage.xaml.cs
index 3de9668..ab3e7ec 100644
--- a/GZStudio/Views/AppListPage.xaml.cs
+++ b/GZStudio/Views/AppListPage.xaml.cs
@@ -1,9 +1,24 @@
-using GZStudio.ViewModels;
+using System.Collections.ObjectModel;
+using GZStudio.ViewModels;
using Microsoft.UI.Xaml.Controls;
namespace GZStudio.Views;
+
+public class AppInfo
+{
+ public string? Name
+ {
+ get; set;
+ }
+ public string? CreatedTime
+ {
+ get; set;
+ }
+}
+
+
public sealed partial class AppListPage : Page
{
public AppListViewModel ViewModel
@@ -15,5 +30,25 @@ public sealed partial class AppListPage : Page
{
ViewModel = App.GetService();
InitializeComponent();
+
+ AppListData = new ObservableCollection
+ {
+ new AppInfo { Name = "App A", CreatedTime = "2024-06-15" },
+ new AppInfo { Name = "App B", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App C", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App D", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App E", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App F", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App G", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App H", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App I", CreatedTime = "2024-08-30" },
+ new AppInfo { Name = "App J", CreatedTime = "2024-08-30" },
+ };
+ DataContext = this;
+ }
+
+ public ObservableCollection AppListData
+ {
+ get; set;
}
}
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e69de29