From c2ed8b775554551f107d5966032e780eaf5b74f1 Mon Sep 17 00:00:00 2001 From: ywmoyue Date: Sat, 20 Apr 2024 16:06:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=A1=B5TopBar=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E9=9A=8F=E8=A7=86=E5=9B=BE=E6=A8=A1=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml | 8 ++++---- .../Pages/Home/UserDynamicAllPage.xaml.cs | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml b/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml index ad80b56e..6227087b 100644 --- a/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml +++ b/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml @@ -102,16 +102,16 @@ - + - + - - + + diff --git a/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml.cs b/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml.cs index be302f76..b601ff54 100644 --- a/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml.cs +++ b/src/BiliLite.UWP/Pages/Home/UserDynamicAllPage.xaml.cs @@ -73,6 +73,12 @@ private void SetGridCore() BtnList.Visibility = Visibility.Visible; //XAML ListDyn.ItemsPanel = (ItemsPanelTemplate)this.Resources["GridPanel"]; + + //顶部 + GridTopBar.MaxWidth = double.MaxValue; + GridTopBar.Margin = new Thickness(0, 0, 0, 4); + BorderTopBar.CornerRadius = new CornerRadius(0); + BorderTopBar.Margin = new Thickness(0); } private void SetListCore() @@ -83,6 +89,12 @@ private void SetListCore() BtnList.Visibility = Visibility.Collapsed; //XAML ListDyn.ItemsPanel = (ItemsPanelTemplate)this.Resources["ListPanel"]; + + //顶部 + GridTopBar.MaxWidth = 800; + GridTopBar.Margin = new Thickness(8, 0, 8, 0); + BorderTopBar.CornerRadius = new CornerRadius(4); + BorderTopBar.Margin = new Thickness(12, 4, 12, 4); } private async void BtnRefreshDynamic_OnClick(object sender, RoutedEventArgs e)