private void ViewSceneObjects_SelectionChanged(object sender, SelectionChangedEventArgs e) { IList <object> selectedItem = (sender as ListView).SelectedItems; lock (appBody.selectedObjcetLock) { appBody.SelectedEntities.Clear(); appBody.SelectedGameObjects.Clear(); for (int i = 0; i < selectedItem.Count; i++) { if (selectedItem[i] is MMD3DEntity entity) { appBody.SelectedEntities.Add(entity); } else if (selectedItem[i] is GameObject gameObject) { appBody.SelectedGameObjects.Add(gameObject); } } if (selectedItem.Count == 1) { if (appBody.SelectedEntities.Count == 1) { appBody.ShowDetailPage(typeof(EntityPropertiesPage), appBody); } else if (appBody.SelectedGameObjects.Count == 1) { appBody.ShowDetailPage(typeof(GameObjectPage), appBody); } else { appBody.ShowDetailPage(typeof(EmptyPropertiesPage), null); } } else { appBody.ShowDetailPage(typeof(EmptyPropertiesPage), null); } } appBody.RequireRender(); }
private void About_Click(object sender, RoutedEventArgs e) { appBody.ShowDetailPage(typeof(PropertiesPages.SoftwareInfoPropertiesPage), appBody); }