Pop out manual station add/edit into standalone window#74
Merged
Conversation
Agent-Logs-Url: https://github.com/TheJoeFin/Trdo/sessions/069d6b25-7e88-4cf0-85ed-b1ea8971abf7 Co-authored-by: TheJoeFin <7809853+TheJoeFin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Pop out manual station into its own small window
Pop out manual station add/edit into standalone window
Mar 31, 2026
Added WindowPlacementService to capture pointer position and position windows (ManualStationWindow, TutorialWindow) near the anchor. Updated event handlers to use the service before opening flyouts or windows. Increased ManualStationWindow height to 500 and reformatted XAML bindings for readability. Added necessary using directives for the new service.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closing the tray flyout clears any in-progress station form fields because the navigation stack is destroyed with it. Both "add manually" and "edit station" flows now open a dedicated
ManualStationWindowthat lives outside the flyout lifecycle.New:
Controls/ManualStationWindowWindowEx-based, 400×380, non-maximizable/minimizable withMicaBackdropand dynamicTitleBartitle ("Add" vs "Edit")AddStationViewModelandPlayerViewModel.Shared— no ViewModel changes neededWindowHelper.Track()to prevent premature GC; auto-focuses the name field on activationViewModel.Save()) or cancelUpdated callers
PlayingPage→ Edit context menu_shellViewModel?.NavigateToAddStationPage(station)ManualStationWindowpre-loaded with stationSearchStation→ "Or add station manually"_shellViewModel?.NavigateToAddStationPage()ManualStationWindowWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ndavsblobprodwus219.blob.core.windows.net/usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/7308510B18BD5F018EBF4978576AFCBB/missingpackages_workingdir --packages /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)s8nvsblobprodwus2158.blob.core.windows.net/usr/bin/dotnet dotnet build Trdo/Trdo.csproj --configuration Debug /p:EnableWindowsTargeting=true(dns block)If you need me to access, download, or install something from one of these locations, you can either: