Today I just working with Silverlight Project There is some requirement like change location of control runtime on specific condition ,There are method like
Grid.SetColumn(<Frameworkelement>,<Column Number>); Grid.SetRow(<Frameworkelement>,<Row Number>); Grid.SetColumnSpan(<Frameworkelement>,<no of columns to span>) Grid.SetRowSpan((<Frameworkelement>,<no of rows to span>)
Eg.
Grid.SetColumn(<ControlName>, 2); Grid.SetRow(<ControlName>, 1); Grid.SetColumnSpan(<ControlName>, 3); Grid.SetRowSpan(<ControlName>, 2);
Thank You
Published under: Silverlight Tips · · · ·