/// <summary>
        /// Makes the cell style right aligned.
        /// </summary>
        /// <param name="col">The column.</param>
        /// <param name="cellStyleKey">
        /// The key of the style to apply to the cells, or null to use <see cref="DataGrid.DataGridCellRightStyleKey"/>
        /// </param>
        /// <returns>The column.</returns>
        public static DataGridColumn MakeCellRightAligned(this DataGridColumn col, object cellStyleKey = null)
        {
            Style cellStyle = (Style)Application.Current.TryFindResource(cellStyleKey ?? DataGrid.DataGridCellRightStyleKey);

            return(col.AddCellStyle(cellStyle));
        }