예제 #1
0
        /// <summary>Helper for setting <see cref="OfRowPropertyKey"/> on <paramref name="element"/>.</summary>
        /// <param name="element"><see cref="DataGridRow"/> to set <see cref="OfRowPropertyKey"/> on.</param>
        /// <param name="value">OfRow property value.</param>
        public static void SetOfRow(this DataGridRow element, int value)
        {
            if (element is null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            element.SetValue(OfRowPropertyKey, value);
        }
예제 #2
0
 /// <summary>
 /// Sets the deselection enabled property. If enabled, and the row is clicked while selected, the row is deselected.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <param name="value">if set to <c>true</c> deselects the row when selected and clicked.</param>
 public static void SetIsDeselectionEnabled(DataGridRow dataGridRow, bool value)
 {
     dataGridRow.SetValue(IsDeselectionEnabledProperty, value);
 }
예제 #3
0
 /// <summary>
 /// Sets the is read only flag for the row.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <param name="value">if set to <c>true</c> the row is read only.</param>
 public static void SetIsReadOnly(DataGridRow dataGridRow, bool value)
 {
     dataGridRow.SetValue(IsReadOnlyProperty, value);
 }
예제 #4
0
 /// <summary>
 /// Sets the content template when this instance is being dragged above or below another row.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <param name="value">A data template used when this instance is being dragged above or below another row.</param>
 public static void SetMoveDragContentTemplate(DataGridRow dataGridRow, DataTemplate value)
 {
     dataGridRow.SetValue(MoveDragContentTemplateProperty, value);
 }
예제 #5
0
 /// <summary>
 /// Sets the drag format when this instance is being dragged above or below another row.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <param name="format">The drag format used when this instance is being dragged above or below another row.</param>
 public static void SetMoveDragFormat(DataGridRow dataGridRow, string format)
 {
     dataGridRow.SetValue(MoveDragFormatProperty, format);
 }
예제 #6
0
 /// <summary>Helper for setting <see cref="OfRowPropertyKey"/> on <paramref name="element"/>.</summary>
 /// <param name="element"><see cref="DataGridRow"/> to set <see cref="OfRowPropertyKey"/> on.</param>
 /// <param name="value">OfRow property value.</param>
 public static void SetOfRow(this DataGridRow element, int value)
 {
     element.SetValue(OfRowPropertyKey, value);
 }
예제 #7
0
 /// <summary>
 /// Sets the command used to move another row below this one using drag and drop.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <param name="command">The command to move a row below this instance.</param>
 public static void SetMoveBelowCommand(DataGridRow dataGridRow, ICommand command)
 {
     dataGridRow.SetValue(MoveBelowCommandProperty, command);
 }
 public static void SetIsBroughtIntoViewWhenSelected(
     DataGridRow dataGridRow, bool value)
 {
     dataGridRow.SetValue(IsBroughtIntoViewWhenSelectedProperty, value);
 }
예제 #9
0
 public static void SetFocusWhileSelection(DataGridRow dataGridRow, bool value)
 {
     dataGridRow.SetValue(FocusWhileSelectionProperty, value);
 }
예제 #10
0
 public static void SetSelectionVisibility(DataGridRow i, Visibility value) => i.SetValue(SelectionVisibilityProperty, value);
예제 #11
0
 private static void SetHeadersVisibility(DataGridRow row, DataGridHeadersVisibility value)
 {
     row.SetValue(HeadersVisibilityPropertyKey, value);
 }
예제 #12
0
 private static void SetAreRowDetailsFrozen(DataGridRow row, bool value)
 {
     row.SetValue(AreRowDetailsFrozenPropertyKey, value);
 }
예제 #13
0
 public static void SetStartAt(this DataGridRow element, int value)
 {
     element.SetValue(StartAtProperty, value);
 }
예제 #14
0
 public static void SetIn(this DataGridRow element, DataGrid value)
 {
     element.SetValue(InProperty, value);
 }