How to save and restore window position in wpf c#
Hello iam using .NET 7.0 and Properties doesnt work for me via code
10 Replies
doesnt work how?
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
i mean i cant event find any class named Properties as static reference
You mean the properties that get displayed in the Visual Studio Properties window?
I mean like in this code on internet
I do not have any properties class etc
or maybe i need to download package to it idk
That's coming from a Settings file, which is something you have to add to your Properties folder by yourself
so i need to just create Properties folder and Settings class in it? i dont understand
You need to create a folder named Properties at the root of your project, then right-click on it -> Add new item -> Settings file
Tried Jot before?
https://github.com/anakic/Jot#example-persisting-the-size-and-location-of-a-window
GitHub
GitHub - anakic/Jot: Jot is a library for persisting and applying ....
Jot is a library for persisting and applying .NET application state. - GitHub - anakic/Jot: Jot is a library for persisting and applying .NET application state.
okay thanks guy now i know everything