如何在WPF中点击按钮使窗口收缩扩展或者说让窗口去适应控件的大小
自己看答案:http://www.cnblogs.com/wuhaowinner/archive/2012/10/23/Auto-match_Window_WPF.html
SizeToContent="Height"