views:

57

answers:

1

Can we use Binding for Grid ColSpan/RowSpan?

For example,

<StackPanel Grid.ColSpan={Binding ColSpanValue} />
A: 

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.

Enough already
Thanks HiTech Magic...
etrast81