private static void Nav_SelectionChanged(object sender, SelectionChangedEventArgs e) { NavList nav = sender as NavList; Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand(); if (e.AddedItems.Count > 0 && e.RemovedItems.Count > 0 && !e.RemovedItems[0].Equals(e.AddedItems[0])) { cmd.Execute(sender); } }
private static void Nav_SelectionChanged(object sender, SelectionChangedEventArgs e) { NavList nav = sender as NavList; Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand(); if (nav.IsLoaded) { cmd.Execute(sender); } }