更新整理
This commit is contained in:
@@ -97,7 +97,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
return;
|
||||
}
|
||||
|
||||
_ = NavigateToMenuItemFromAutoSuggestBox(FooterMenuItems, element);
|
||||
NavigateToMenuItemFromAutoSuggestBox(FooterMenuItems, element);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -120,7 +120,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
return;
|
||||
}
|
||||
|
||||
_ = NavigateToMenuItemFromAutoSuggestBox(FooterMenuItems, selectedSuggestBoxItem);
|
||||
NavigateToMenuItemFromAutoSuggestBox(FooterMenuItems, selectedSuggestBoxItem);
|
||||
}
|
||||
|
||||
[DebuggerStepThrough]
|
||||
@@ -231,7 +231,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
protected virtual void AutoSuggestBoxSymbolButtonOnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
SetCurrentValue(IsPaneOpenProperty, !IsPaneOpen);
|
||||
_ = AutoSuggestBox?.Focus();
|
||||
AutoSuggestBox?.Focus();
|
||||
}
|
||||
|
||||
protected virtual void BreadcrumbBarOnItemClicked(
|
||||
@@ -239,7 +239,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
BreadcrumbBarItemClickedEventArgs e)
|
||||
{
|
||||
var item = (NavigationViewBreadcrumbItem)e.Item;
|
||||
_ = Navigate(item.PageId);
|
||||
Navigate(item.PageId);
|
||||
}
|
||||
|
||||
protected virtual void CloseNavigationViewItemMenus()
|
||||
@@ -280,9 +280,9 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
{
|
||||
if(singleNavigationViewItem.Content is string content && content == selectedSuggestBoxItem)
|
||||
{
|
||||
_ = NavigateInternal(singleNavigationViewItem);
|
||||
NavigateInternal(singleNavigationViewItem);
|
||||
singleNavigationViewItem.BringIntoView();
|
||||
_ = singleNavigationViewItem.Focus(); // TODO: Element or content?
|
||||
singleNavigationViewItem.Focus(); // TODO: Element or content?
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -299,7 +299,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
/// <summary>
|
||||
/// This virtual method is called when <see cref="BackButton"/> is clicked.
|
||||
/// </summary>
|
||||
protected virtual void OnBackButtonClick(object sender, RoutedEventArgs e) { _ = GoBack(); }
|
||||
protected virtual void OnBackButtonClick(object sender, RoutedEventArgs e) { GoBack(); }
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void OnInitialized(EventArgs e)
|
||||
@@ -327,7 +327,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
// Back button
|
||||
if(e.ChangedButton is MouseButton.XButton1)
|
||||
{
|
||||
_ = GoBack();
|
||||
GoBack();
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
@@ -438,7 +438,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
return;
|
||||
}
|
||||
|
||||
_ = VisualStateManager.GoToState(navigationView, navigationView.IsPaneOpen ? "PaneOpen" : "PaneCompact", true);
|
||||
VisualStateManager.GoToState(navigationView, navigationView.IsPaneOpen ? "PaneOpen" : "PaneCompact", true);
|
||||
}
|
||||
|
||||
protected Dictionary<string, INavigationViewItem> PageIdOrTargetTagNavigationViewsDictionary
|
||||
@@ -453,7 +453,7 @@ public partial class NavigationView : System.Windows.Controls.Control, INavigati
|
||||
{
|
||||
OnItemInvoked();
|
||||
|
||||
_ = NavigateInternal(navigationViewItem);
|
||||
NavigateInternal(navigationViewItem);
|
||||
}
|
||||
|
||||
internal void ToggleAllExpands()
|
||||
|
||||
Reference in New Issue
Block a user