Question : Silverlight markup question (Canvas with Nested Grid)

Im trying to make simple flexible markup on Silverlight, for fullscreen version of it.
It should look like on attached image. XAML i used is also attached.

Could someone say what wrong i'm doing here? (except thing that my hands seems like growing from place that differ from shoulders :P)

I also added
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:

	
		
			
				
				
			
			
				
				
			
			
				
			
			
				
			
			
				
			
		
	

Answer : Silverlight markup question (Canvas with Nested Grid)

Wrapping the grid in a canvas causes the grid to use the minimum suggested size to display it's contents.  To fix this add some logic in your code behind so that the grid uses the maximum size of the page.  The code below will work in the code-behind with your example XAML:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
public MainPage()
{
    InitializeComponent();
    meAlert.Volume = 0.5;

    GridMainLayout.Width = ActualWidth;
    GridMainLayout.Height = ActualHeight;

    SizeChanged += new SizeChangedEventHandler(MainPage_SizeChanged);
}

void MainPage_SizeChanged(object sender, SizeChangedEventArgs e)
{
    GridMainLayout.Width = ActualWidth;
    GridMainLayout.Height = ActualHeight;
}
Random Solutions  
 
programming4us programming4us