Skip to content

Add window position and size memory feature#112

Open
Vaso73 wants to merge 1 commit intor-smith:mainfrom
Vaso73:feature/remember-window-position
Open

Add window position and size memory feature#112
Vaso73 wants to merge 1 commit intor-smith:mainfrom
Vaso73:feature/remember-window-position

Conversation

@Vaso73
Copy link

@Vaso73 Vaso73 commented Mar 20, 2026

Description

This feature remembers and restores the application window position, size, and state when the user closes and reopens vmPing.

Changes

  • Added window position properties to ApplicationOptions class
  • Created ApplicationSettings class to handle XML-based settings persistence
  • Updated MainWindow.xaml.cs to load and save window position on startup and window state changes
  • Window position is saved automatically when user moves, resizes, or changes window state

Files Changed

  • vmPing/Classes/ApplicationOptions.cs
  • vmPing/Classes/ApplicationSettings.cs
  • vmPing/UI/MainWindow.xaml.cs

Testing

  • Open vmPing
  • Move and resize the window
  • Close the application
  • Reopen vmPing - window should be in the same position and size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant