ConsoleGuiTools
ConsoleGuiTools copied to clipboard
Out-GridView should remember window position
I find it super annoying to have to resize it on my wide monitor. The default size it uses is crazy wide.
Is this the original out-grid view? If so, that needs to go in the PowerShell/PowerShell repo (and there might be an existing issue)
I'm an idiot. Yes, I was running the old one. I just assumed import-module
of the .dll that ocgv
was in would have ogv
in it too. I never ran it with -verbose
so just assumed...
Much better default size. I still think it should remember size/position.
Should we close this then since it's about the old ogv?
No, because I changed the title to be more specific to a valid feature request (that the new one doesn't save / restore it's window pos).
Is it possible on Unix? On Windows Registry is used to remember Windows size and position.
You just need somewhere to store one each of:
public enum FormWindowState
{
//
// Summary:
// A default sized window.
Normal = 0,
//
// Summary:
// A minimized window.
Minimized = 1,
//
// Summary:
// A maximized window.
Maximized = 2
}
Point
Size
You do not need to use the registry. .NET Core provides a SettingsService
that abstracts away where stuff is stored.
Can you point SettingsService API?
https://docs.microsoft.com/en-us/dotnet/api/system.configuration.applicationsettingsbase?view=netcore-3.1
This should get you started. Sorry I mis-remembered the name...
@andschwa This should be closed as won't fix since it's for the Avalona version.