Click here to Skip to main content
16,016,088 members

Comments by Russell Sharp (Top 1 by date)

Russell Sharp 31-Aug-12 11:58am View    
How can you code your direction to "On the window classes, assign System.Windows.Window.SizeToContent to System.Windows.SizeToContent.WidthAndHeight"?

Visual Studio 2010 won't allow me to simply type the following:


System.Windows.Window.SizeToContent = System.Windows.SizeToContent.WidthAndHeight
(WidthAndHeight apparently is not a valid property of the SizeToContent parameter.