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

How to adjust size wpf parent window same as it's child window size

$
0
0

hello,

I have an empty parent window, in runtime i add the child user control to it.

i want to resize my parent window according to the different child contents, i have used SizeToContent but it does not worked for me.

i add this child user control in a GridControl of my Parent window. Is it possible to resize main window according to child user control



Thanks & Regards dhampall

Viewing all articles
Browse latest Browse all 18858

Trending Articles



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