From 2918edbe0e83536ee595b82c83571bf8db2a365d Mon Sep 17 00:00:00 2001 From: rabbitism Date: Wed, 14 Feb 2024 11:50:31 +0800 Subject: [PATCH] feat: add a comment. --- src/Ursa/Controls/NavMenu/NavMenu.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ursa/Controls/NavMenu/NavMenu.cs b/src/Ursa/Controls/NavMenu/NavMenu.cs index fed4dfd..0237c8c 100644 --- a/src/Ursa/Controls/NavMenu/NavMenu.cs +++ b/src/Ursa/Controls/NavMenu/NavMenu.cs @@ -163,6 +163,10 @@ public class NavMenu: ItemsControl nav.IsHorizontalCollapsed = !collapsed; } + /// + /// this implementation only works in the case that only leaf menu item is allowed to select. It will be changed if we introduce parent level selection in the future. + /// + /// private void OnSelectedItemChange(AvaloniaPropertyChangedEventArgs args) { if (_updateFromUI) return;