Silverlight simple data binding 2, silverlight binding

Source: Internet
Author: User

Silverlight simple data binding 2, silverlight binding

  <Grid x:Name="LayoutRoot" Background="white" Loaded="LayoutRoot_Loaded" ShowGridLines="False">        <Grid.RowDefinitions>            <RowDefinition Height="40"></RowDefinition>            <RowDefinition Height="40"></RowDefinition>            <RowDefinition Height="40"></RowDefinition>            <RowDefinition Height="40"></RowDefinition>        </Grid.RowDefinitions>        <Grid.ColumnDefinitions>            <ColumnDefinition Width="80"></ColumnDefinition>            <ColumnDefinition Width="50"></ColumnDefinition>            <ColumnDefinition Width="50"></ColumnDefinition>            <ColumnDefinition Width="50"></ColumnDefinition>        </Grid.ColumnDefinitions>                <TextBlock  Grid.Row="0"  Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Name}"/>        <TextBlock  Grid.Row="1"  Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Age}"/>        <TextBlock  Grid.Row="2"  Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Address}"/>            </Grid>
If <stacpanel> is not used for local layout in the previous article, the three rows of data will overlap. Here, the second method is to divide the layout page into rows and then fill in the data in the specified columns. ShowGridLines = "False" False: no split line exists on the layout page, and the true layout also has a split line.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.