private void OnSelectionChanged(object sender, MouseEventArgs e) { if (IsAnimating() || m_adapter.IsAnimating()) { (sender as ListBox).SelectedItem = null; return; } var item = m_list.SelectedItem as MenuListItem; if (item != null) { var sectionChildIndices = m_adapter.GetSectionAndChildIndicesFromSelection(m_list.SelectedIndex); MenuViewCLIMethods.SelectedItem(m_nativeCallerPointer, sectionChildIndices.Item1, sectionChildIndices.Item2); } }
private void OnMenuListItemSelected(object sender, MouseEventArgs e) { if (m_searchInFlight || IsAnimating() || m_adapter.IsAnimating()) { (sender as ListBox).SelectedItem = null; return; } var item = m_list.SelectedItem as MenuListItem; if (item != null) { var sectionChildIndices = m_adapter.GetSectionAndChildIndicesFromSelection(m_list.SelectedIndex); if (item.IsExpandable) { SearchMenuViewCLIMethods.OnSearchCleared(m_nativeCallerPointer); } MenuViewCLIMethods.SelectedItem(m_nativeCallerPointer, sectionChildIndices.Item1, sectionChildIndices.Item2); } }