private void StructListView_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (StructListView.Items.Count == 0) { return; } var item = (StructListItem)StructListView.Items[StructListView.SelectedIndex]; HexEditor.Select(item.offset, item.typeLength); }