<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>C# on 何枝可依</title><link>https://tech.crandom.com/tags/c%23/</link><description>Recent content in C# on 何枝可依</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 16 Dec 2014 13:20:36 +0000</lastBuildDate><atom:link href="https://tech.crandom.com/tags/c%23/index.xml" rel="self" type="application/rss+xml"/><item><title>在代码里设置元素的Grid布局</title><link>https://tech.crandom.com/2014/12/16/%E5%9C%A8%E4%BB%A3%E7%A0%81%E9%87%8C%E8%AE%BE%E7%BD%AE%E5%85%83%E7%B4%A0%E7%9A%84grid%E5%B8%83%E5%B1%80.html</link><pubDate>Tue, 16 Dec 2014 13:20:36 +0000</pubDate><guid>https://tech.crandom.com/2014/12/16/%E5%9C%A8%E4%BB%A3%E7%A0%81%E9%87%8C%E8%AE%BE%E7%BD%AE%E5%85%83%E7%B4%A0%E7%9A%84grid%E5%B8%83%E5%B1%80.html</guid><description>&lt;p&gt;在XAML中设置布局都是在控件里&lt;/p&gt;
&lt;pre class="lang:c# decode:true "&gt;Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"&lt;/pre&gt;
&lt;p&gt;但是在后台怎么办 会发现控件没有这些属性&lt;/p&gt;
&lt;p&gt;这样就好了&lt;/p&gt;
&lt;pre class="lang:c# decode:true "&gt;Grid.SetRowSpan( 控件 , 2);&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>