Layout improvements, depot behavior improvements

This commit is contained in:
2026-06-23 23:24:46 +02:00
parent 1bfac8b222
commit d932761786
11 changed files with 422 additions and 203 deletions

View File

@@ -68,8 +68,14 @@ public partial class Scenarios : UserControl
}
// refresh the consist preview when the view is shown again (e.g. after
// editing the consist in the depot)
// editing the consist in the depot). Switching tabs only toggles IsVisible
// (the view stays in the tree), so listen for that too.
AttachedToVisualTree += (_, _) => RefreshSelectedConsist();
PropertyChanged += (_, e) =>
{
if (e.Property == IsVisibleProperty && IsVisible)
RefreshSelectedConsist();
};
}
private void SceneryList_OnSelectionChanged(object? sender, SelectionChangedEventArgs e)