diff --git a/src/Wpf.Ui/Controls/NavigationView/INavigationView.cs b/src/Wpf.Ui/Controls/NavigationView/INavigationView.cs index 3f8e9aa75..df33384c5 100644 --- a/src/Wpf.Ui/Controls/NavigationView/INavigationView.cs +++ b/src/Wpf.Ui/Controls/NavigationView/INavigationView.cs @@ -54,6 +54,16 @@ public interface INavigationView /// object? FooterMenuItemsSource { get; set; } + /// + /// Gets or sets a value indicating whether the top separators is visible. + /// + bool IsTopSeparatorVisible { get; set; } + + /// + /// Gets or sets a value indicating whether the footer separators is visible. + /// + bool IsFooterSeparatorVisible { get; set; } + /// /// Gets the selected item. /// diff --git a/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs b/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs index 47aa0758f..43086aa16 100644 --- a/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs +++ b/src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs @@ -87,6 +87,22 @@ public partial class NavigationView new FrameworkPropertyMetadata(null, OnFooterMenuItemsSourceChanged) ); + /// Identifies the dependency property. + public static readonly DependencyProperty IsTopSeparatorVisibleProperty = DependencyProperty.Register( + nameof(IsTopSeparatorVisible), + typeof(bool), + typeof(NavigationView), + new FrameworkPropertyMetadata(true) + ); + + /// Identifies the dependency property. + public static readonly DependencyProperty IsFooterSeparatorVisibleProperty = DependencyProperty.Register( + nameof(IsFooterSeparatorVisible), + typeof(bool), + typeof(NavigationView), + new FrameworkPropertyMetadata(true) + ); + /// Identifies the dependency property. public static readonly DependencyProperty ContentOverlayProperty = DependencyProperty.Register( nameof(ContentOverlay), @@ -315,6 +331,20 @@ public object? FooterMenuItemsSource } } + /// + public bool IsTopSeparatorVisible + { + get => (bool)GetValue(IsTopSeparatorVisibleProperty); + set => SetValue(IsTopSeparatorVisibleProperty, value); + } + + /// + public bool IsFooterSeparatorVisible + { + get => (bool)GetValue(IsFooterSeparatorVisibleProperty); + set => SetValue(IsFooterSeparatorVisibleProperty, value); + } + /// public object? ContentOverlay { diff --git a/src/Wpf.Ui/Controls/NavigationView/NavigationViewCompact.xaml b/src/Wpf.Ui/Controls/NavigationView/NavigationViewCompact.xaml index 687e78210..1a675840e 100644 --- a/src/Wpf.Ui/Controls/NavigationView/NavigationViewCompact.xaml +++ b/src/Wpf.Ui/Controls/NavigationView/NavigationViewCompact.xaml @@ -397,6 +397,7 @@ + + + + + +