开发者

SilverLight Binding Grid ColSpan

Can we use Binding for Grid ColSpan/RowSpan?

For example,

<StackPanel Grid.ColSpan={Bin开发者_Go百科ding ColSpanValue} />


The short answer is yes:

You can bind on any dependency property. Attached properties like Grid.ColSpan are by necessity DependencyProperties.

In the case of ColSpan it is defined by the Grid class, but the actual values are stored within the properties of the object that it is applied to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜