码迷,mamicode.com
首页 > 其他好文 > 详细

GridView

时间:2016-10-10 20:44:14      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:

 <GridView x:Name="gridView" Margin="0 50 0 0">
            <StackPanel>
                <TextBlock x:Name="lblName" TextWrapping="Wrap"  />
                <TextBlock x:Name="lblName2" TextWrapping="Wrap"  />
            </StackPanel>
        </GridView>

 

 

 

 protected override void OnNavigatedTo(NavigationEventArgs e)
        {
           // List<string> str = new List<string>();
           
            for (int i=0;i<1000;i++)
            {
                // str.Add(i.ToString());
                if (i % 2 == 0)
                {
                    lblName.Text += i.ToString();
                    lblName.Text += Environment.NewLine;
              
                }
                else
                {
                    lblName2.Text += i.ToString();
                    lblName.Text += Environment.NewLine;
                }
            }

        }

 

GridView

标签:

原文地址:http://www.cnblogs.com/ansen312/p/5946748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!