Click here to Skip to main content
13,250,883 members (52,949 online)
Click here to Skip to main content

Stats

55.5K views
57 bookmarked
Posted 24 Sep 2008

Silverlight 2.0 in Examples: Part 1 - Silverlight Elements: Panels and Controls

, 24 Sep 2008
part 1 of silverlight 2.0 tutorial
<UserControl x:Class="GridSample.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="80"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="55"/>
            <RowDefinition Height="55"/>
        </Grid.RowDefinitions>
        <TextBlock 
            Grid.Row="0"
            Grid.Column="0"
            Text="Cell (0, 0)"/>        
        <TextBlock 
            Grid.Row="0"
            Grid.Column="1"
            HorizontalAlignment="Right"
            Text="Cell (1, 0)"/>
        <TextBlock 
            Grid.Row="1"
            Grid.Column="0"
            Text="Cell (0, 1)"/>
        <TextBlock 
            Grid.Row="1"
            Grid.Column="1"
            VerticalAlignment="Bottom"
            Text="Cell (1, 1)"/>
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Nick Polyak
Architect AWebPros
United States United States
No Biography provided

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171114.1 | Last Updated 24 Sep 2008
Article Copyright 2008 by Nick Polyak
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid