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.
精彩评论