Posted By: geekchick | Oct 23rd @ 1:19 PM
page 1 of 1
Comments: 1 | Views: 93

hi,

I have a WPF application with a userinterface created in Expression Blend. I have various controls on the window along with a datagrid. When I resize the window I want the datagrid only to be resized along with it. How would I accomplish this?

Thanks,
geekChick

Place the datagrid inside of a layout container that resizes with the window, e.g. Grid, StackPanel, DockPanel, WrapPanel and don't set the height and width properties of the datagrid.

 

I must admit that if this is giving you trouble, you may want to invest in a good WPF book. I recommend "Pro WPF in C# 2008" from Apress. There's also a VB version, if you'd prefer that language instead.

page 1 of 1
Comments: 1 | Views: 93
Microsoft Communities