Esempio n. 1
0
        public static int GetOfRow(this DataGridRow element)
        {
            if (element is null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            return((int)element.GetValue(OfRowProperty));
        }
Esempio n. 2
0
 /// <summary>
 /// Gets the is read only flag for the row.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <returns><c>true</c> if the row is read only, otherwise <c>false</c>.</returns>
 public static bool GetIsReadOnly(DataGridRow dataGridRow)
 {
     return((bool)dataGridRow.GetValue(IsReadOnlyProperty));
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the command used to move another row above this one using drag and drop.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <returns>The command to move a row above this instance.</returns>
 public static ICommand GetMoveAboveCommand(DataGridRow dataGridRow)
 {
     return((ICommand)dataGridRow.GetValue(MoveAboveCommandProperty));
 }
Esempio n. 4
0
 /// <summary>
 /// Gets the drag format when this instance is being dragged above or below another row.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <returns>The drag format used when this instance is being dragged above or below another row.</returns>
 public static string GetMoveDragFormat(DataGridRow dataGridRow)
 {
     return((string)dataGridRow.GetValue(MoveDragFormatProperty));
 }
Esempio n. 5
0
 /// <summary>
 /// Gets 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>
 /// <returns><c>true</c> if deselecting row when selected and clicked, otherwise <c>false</c>.</returns>
 public static bool GetIsDeselectionEnabled(DataGridRow dataGridRow)
 {
     return((bool)dataGridRow.GetValue(IsDeselectionEnabledProperty));
 }
Esempio n. 6
0
 public static int GetOfRow(this DataGridRow element)
 {
     return((int)element.GetValue(OfRowProperty));
 }
Esempio n. 7
0
 /// <summary>
 /// Gets the content template when this instance is being dragged above or below another row.
 /// </summary>
 /// <param name="dataGridRow">The data grid row.</param>
 /// <returns>A data template used when this instance is being dragged above or below another row.</returns>
 public static DataTemplate GetMoveDragContentTemplate(DataGridRow dataGridRow)
 {
     return((DataTemplate)dataGridRow.GetValue(MoveDragContentTemplateProperty));
 }
 public static bool GetIsBroughtIntoViewWhenSelected(DataGridRow dataGridRow)
 {
     return((bool)dataGridRow.GetValue(IsBroughtIntoViewWhenSelectedProperty));
 }
Esempio n. 9
0
 public static bool GetFocusWhileSelection(DataGridRow dataGridRow)
 {
     return((bool)dataGridRow.GetValue(FocusWhileSelectionProperty));
 }
Esempio n. 10
0
 public static Visibility GetSelectionVisibility(DataGridRow i) => (Visibility)i.GetValue(SelectionVisibilityProperty);
 public static DataGridHeadersVisibility GetHeadersVisibility(DataGridRow row)
 {
     return((DataGridHeadersVisibility)row.GetValue(HeadersVisibilityProperty));
 }
 public static bool GetAreRowDetailsFrozen(DataGridRow row)
 {
     return((bool)row.GetValue(AreRowDetailsFrozenProperty));
 }
Esempio n. 13
0
 public static int GetStartAt(this DataGridRow element)
 {
     return((int)element.GetValue(StartAtProperty));
 }
Esempio n. 14
0
 public static DataGrid GetIn(this DataGridRow element)
 {
     return((DataGrid)element.GetValue(InProperty));
 }