I'm developing metro app using Windows 8 release preview and C#(VS 2012),Is there any way to get Grid width which is set to Auto,
Brief: I have StackPanel with a Grid in it with n number of rows and n number of columns(Rows and Columns are generating dynamically).
I need to know Grid actual width which is in StackPanel, i tried
1)var Actualwidth = grid.ActualWidth;
2)var Minwidth = grid.MinWidth;
3)var width = grid.Width;
4)var Renderwidth = grid.RenderSize.Width;
Where Results comes as follows
1 = 0.0
2 = 0.0
3 = NaN
4 = 0.0
Is there any way to get actual width, Please help me, Thanks in advance