diff --git a/src/FluentHub.App/Data/Items/NavigationBarModel.cs b/src/FluentHub.App/Data/Items/NavigationBarModel.cs index e21899569..7c2acdd68 100644 --- a/src/FluentHub.App/Data/Items/NavigationBarModel.cs +++ b/src/FluentHub.App/Data/Items/NavigationBarModel.cs @@ -5,8 +5,8 @@ namespace FluentHub.App.Data.Items { public class NavigationBarModel : ObservableObject { - private ObservableCollection? _NavigationBarItems; - public ObservableCollection? NavigationBarItems + private ObservableCollection _NavigationBarItems = new(); + public ObservableCollection NavigationBarItems { get => _NavigationBarItems; set => SetProperty(ref _NavigationBarItems, value); diff --git a/src/FluentHub.App/Data/Items/NavigationHistory.cs b/src/FluentHub.App/Data/Items/NavigationHistory.cs index 60f12f757..f46cf5903 100644 --- a/src/FluentHub.App/Data/Items/NavigationHistory.cs +++ b/src/FluentHub.App/Data/Items/NavigationHistory.cs @@ -175,9 +175,6 @@ private void UpdateNavigationBar(bool isBackNavigation = false) { currentTabNavigationBar.PageKind = CurrentItem.PageKind; - // Initialize NavigationBar items - currentTabNavigationBar.NavigationBarItems ??= new(); - if (currentTabNavigationBar.NavigationBarItems.Count != 0) currentTabNavigationBar.NavigationBarItems.Clear(); diff --git a/src/FluentHub.App/Data/Items/TabViewItem.cs b/src/FluentHub.App/Data/Items/TabViewItem.cs index 86ed1c0f4..d05dad1bc 100644 --- a/src/FluentHub.App/Data/Items/TabViewItem.cs +++ b/src/FluentHub.App/Data/Items/TabViewItem.cs @@ -29,6 +29,7 @@ public TabViewItem() Frame = new(); NavigationHistory = new(); NavigationBar = new(); + NavigationBar.NavigationBarItems = new(); Frame.Navigating += OnFrameNavigating; } diff --git a/src/FluentHub.App/UserControls/IssueCommentBlock.xaml b/src/FluentHub.App/UserControls/IssueCommentBlock.xaml index a7434bd93..10a144114 100644 --- a/src/FluentHub.App/UserControls/IssueCommentBlock.xaml +++ b/src/FluentHub.App/UserControls/IssueCommentBlock.xaml @@ -20,7 +20,7 @@ Background="{ThemeResource LayerFillColorDefaultBrush}" BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" BorderThickness="1" - CornerRadius="{StaticResource ControlCornerRadius}"> + CornerRadius="8"> @@ -62,9 +62,10 @@ + + + + + + @@ -1835,7 +1852,6 @@ diff --git a/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml b/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml index 31931d94f..34e8c27ad 100644 --- a/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml +++ b/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml @@ -86,7 +86,7 @@ - + diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml b/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml index a147ed7a3..2e094bc60 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml +++ b/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml @@ -53,7 +53,7 @@ - + diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml b/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml index 5a08a86a7..edc5417da 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml +++ b/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml @@ -33,7 +33,7 @@ - + diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml b/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml index c0226d407..0f2c24296 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml +++ b/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml @@ -34,7 +34,7 @@ - + diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml b/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml index 0141281fa..a68cc6997 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml +++ b/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml @@ -54,7 +54,7 @@ @@ -92,7 +92,7 @@ @@ -132,7 +132,7 @@ @@ -172,7 +172,7 @@ @@ -216,7 +216,7 @@ @@ -257,7 +257,7 @@ @@ -297,7 +297,7 @@ @@ -334,7 +334,7 @@ @@ -406,7 +406,7 @@