void OnItemSelected(object?sender, TSelectedItemChangedEventArgs e) { _ = Element ?? throw new InvalidOperationException($"{nameof(Element)} should have been set by base class."); _lastSelected = e.SelectedItem as Element; ((IShellController)Element).OnFlyoutItemSelected(_lastSelected); }
void OnItemSelected(object?sender, TSelectedItemChangedEventArgs e) { if (e.SelectedItem == null) { return; } var content = e.SelectedItem; if (ShellSection.CurrentItem != content) { ShellSection.SetValueFromRenderer(ShellSection.CurrentItemProperty, content); } }
static void OnItemSelected(object sender, TSelectedItemChangedEventArgs e) { (sender as ItemTemplateAdaptor)?.SendItemSelected(e.SelectedItem); }