WPF 窗体高度跟随内容调整

1、宽度和高度调整

<Window SizeToContent="WidthAndHeight"></Window>

 2、高度调整

<Window SizeToContent="Height"></Window>

 3、宽度调整

<Window SizeToContent="Width"></Window>

 

posted @ 2024-05-03 12:48  microsoft-zhcn  阅读(10)  评论(0编辑  收藏  举报