Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to remember the size and location of a UserControl, instead of a Window.

$
0
0

Hello All,

I have a UserControl object that I instantiate and assign to a Window at runtime. I know how to remember the size and location for Window objects, as per this link:

http://www.thomaslevesque.com/2008/11/18/wpf-binding-to-application-settings-using-a-markup-extension/

Problem however is, that the user control only has Width and Height properties and not Top and Left such as a UserControl. 

How do I thus remember the location and size of a UserControl, so that the next time the user opens the app, it will be the same size and in the same location as when he closed?

Thanks.

Harriet


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>