Exemple #1
0
        /// <summary>
        /// Sets the position of the given caption on a grid.
        /// </summary>
        /// <param name="t">The caption texblock to set the position of.</param>
        private void SetCaptionPosition(CaptionTextBlock t)
        {
            GridLocation l = GridLocation.GetGridLocation(t.Caption.Location);

            Grid.SetRow(t, l.Row);
            Grid.SetRowSpan(t, l.RowSpan);
            Grid.SetColumn(t, l.Column);
            Grid.SetColumnSpan(t, l.ColumnSpan);
        }