private void Button_Click_2(object sender, RoutedEventArgs e) { Bigdisplay.IsOpen = false; Line2D l = (Line2D)LatticeLineList.SelectedItem; string name = (l == null) ? string.Empty : l.Name; LatticeDisplay.Hilight(name, true); SmallDisplay.Visibility = Windows.UI.Xaml.Visibility.Visible; }
private void LatticeLineList_SelectionChanged(object sender, SelectionChangedEventArgs e) { // here we want to hilight the selected line Line2D l = (Line2D)LatticeLineList.SelectedItem; string name = (l == null) ? string.Empty : l.Name; if (Bigdisplay.IsOpen) { PopupDisplay.Hilight(name, true); } else { LatticeDisplay.Hilight(name, true); } }