feat: add a comment.

This commit is contained in:
rabbitism
2024-02-14 11:50:31 +08:00
parent 122f89fc57
commit 2918edbe0e

View File

@@ -163,6 +163,10 @@ public class NavMenu: ItemsControl
nav.IsHorizontalCollapsed = !collapsed; nav.IsHorizontalCollapsed = !collapsed;
} }
/// <summary>
/// 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.
/// </summary>
/// <param name="args"></param>
private void OnSelectedItemChange(AvaloniaPropertyChangedEventArgs<object?> args) private void OnSelectedItemChange(AvaloniaPropertyChangedEventArgs<object?> args)
{ {
if (_updateFromUI) return; if (_updateFromUI) return;