public static ControlTemplate GetTemplate(DataGridControl obj) { if (null == obj) { throw new ArgumentNullException("obj"); } return((ControlTemplate)obj.GetValue(NewRowTemplateBehavior.TemplateProperty)); }
public static FocusTrackingModes GetTrackingModes(DataGridControl obj) { if (null == obj) { throw new ArgumentNullException("obj"); } return((FocusTrackingModes)obj.GetValue(FocusBehavior.TrackingModesProperty)); }
private static DataGridSelectCommandBehavior GetOrCreateBehavior(DataGrid selector) { var behavior = selector.GetValue(SelectCommandBehaviorProperty) as DataGridSelectCommandBehavior; if (behavior == null) { behavior = new DataGridSelectCommandBehavior(selector); selector.SetValue(SelectCommandBehaviorProperty, behavior); } return behavior; }
/// <summary> /// Gets the edit cells with a single click mode. /// By default a cell has to be double clicked to enter editing mode, this property changes this to be a single click. /// </summary> /// <param name="dataGrid">The data grid.</param> /// <returns><c>true</c> if single click mode, otherwise <c>false</c>.</returns> public static bool GetIsSingleClickEdit(DataGrid dataGrid) { return (bool)dataGrid.GetValue(IsSingleClickEditProperty); }
public static bool GetIsUpdatingColumnSettings(DataGrid dataGrid) { return (bool)dataGrid.GetValue(IsUpdatingColumnSettingsProperty); }
public static string GetMethodName(DataGrid dataGrid) { return (string)dataGrid.GetValue(MethodNameProperty); }
/// <summary> /// Gets the deselection enabled property. If enabled, and the white space on the grid is clicked, all rows are deselected. /// </summary> /// <param name="dataGrid">The data grid.</param> /// <returns><c>true</c> if deselecting all rows when white space is clicked, otherwise <c>false</c>.</returns> public static bool GetIsDeselectionEnabled(DataGrid dataGrid) { return (bool)dataGrid.GetValue(IsDeselectionEnabledProperty); }
public static bool GetDataGridRollbackOnUnfocused(DataGrid datagrid) { return (bool)datagrid.GetValue(DataGridRollbackOnUnfocusedProperty); }
public static IEnumerable<DataGridColumn> GetColumns( DataGrid dataGrid ) { Arg.NotNull( dataGrid, nameof( dataGrid ) ); return (IEnumerable<DataGridColumn>) dataGrid.GetValue( ColumnsProperty ); }
public static string GetColumnSettings(DataGrid dataGrid) { return (string)dataGrid.GetValue(ColumnSettingsProperty); }
public static bool GetIsColumnSettingsEnabled(DataGrid dataGrid) { return (bool)dataGrid.GetValue(IsColumnSettingsEnabledProperty); }
public static bool GetLastColumnFill(DataGrid element) { return (bool)element.GetValue(LastColumnFillProperty); }
/// <summary> /// Gets the internal group summary items, representing all columns. /// </summary> /// <param name="dataGrid">The data grid.</param> /// <returns>The internal group summary items.</returns> private static DataGridGroupSummaryCollection GetGroupSummaryInternal(DataGrid dataGrid) { return (DataGridGroupSummaryCollection)dataGrid.GetValue(GroupSummaryInternalProperty); }
public static bool GetDataGridMiddleButtonScroll(DataGrid datagrid) { return (bool)datagrid.GetValue(DataGridMiddleButtonScrollProperty); }
public static bool GetIsSelectionFixEnabled(DataGrid element) { return (bool)element.GetValue(IsSelectionFixEnabledProperty); }
public static IList GetSelectedItems( DataGrid dataGrid ) { Arg.NotNull( dataGrid, nameof( dataGrid ) ); return (IList) dataGrid.GetValue( SelectedItemsProperty ); }
public static DataTemplate GetGroupRowTemplate(DataGrid ui) { return (DataTemplate)ui.GetValue(GroupRowTemplateProperty); }
public static FiltersContainer GetFiltersContainer(DataGrid grid) { return (FiltersContainer) grid.GetValue(FiltersContainerProperty); }
/// <summary> /// Gets whether the user can hide columns. /// </summary> /// <param name="dataGrid">The data grid.</param> /// <returns><c>true</c> if the user can hide columns, otherwise <c>false</c>.</returns> public static bool GetCanUserHideColumns(DataGrid dataGrid) { return (bool)dataGrid.GetValue(CanUserHideColumnsProperty); }
/// <summary> /// Retrieves the <see cref="ICommand"/> attached to the <see cref="TextBox"/>. /// </summary> /// <param name="selector">TextBox containing the Command dependency property</param> /// <returns>The value of the command attached</returns> public static ICommand GetCommand(DataGrid selector) { return selector.GetValue(CommandProperty) as ICommand; }
/// <summary> /// Gets the group summary items. /// </summary> /// <param name="dataGrid">The data grid.</param> /// <returns>The group summary items</returns> public static DataGridGroupSummaryCollection GetGroupSummary(DataGrid dataGrid) { return (DataGridGroupSummaryCollection)dataGrid.GetValue(GroupSummaryProperty); }
public static bool GetDataGridRollbackOnDataContextChanged(DataGrid datagrid) { return (bool)datagrid.GetValue(DataGridRollbackOnDataContextChangedProperty); }
public static bool GetAllowCustomSort(DataGrid grid) { return (bool)grid.GetValue(AllowCustomSortProperty); }
public static bool GetIsEnableColumnsVisibility(DataGrid grid) { return (bool) grid.GetValue(IsEnableColumnsVisibilityProperty); }
public static DataGridFillerColumn GetDataGridFillerColumn(DataGrid element) { return (DataGridFillerColumn)element.GetValue(DataGridFillerColumnProperty); }
private static void ListenToColumnAutoGeneration(DataGrid dataGrid) { if (dataGrid.GetValue(ListenerProperty) == null) { dataGrid.SetCurrentValue(ListenerProperty, new AutogenerateColumnListener(dataGrid)); } }