本文整理汇总了C#中System.Windows.Controls.DataGrid.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DataGrid.GetValue方法的具体用法?C# DataGrid.GetValue怎么用?C# DataGrid.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.DataGrid
的用法示例。
在下文中一共展示了DataGrid.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetOrCreateBehavior
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;
}
示例2: GetIsUpdatingColumnSettings
public static bool GetIsUpdatingColumnSettings(DataGrid dataGrid)
{
return (bool)dataGrid.GetValue(IsUpdatingColumnSettingsProperty);
}
示例3: GetIsSingleClickEdit
/// <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);
}
示例4: GetIsDeselectionEnabled
/// <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);
}
示例5: GetColumns
public static IEnumerable<DataGridColumn> GetColumns( DataGrid dataGrid )
{
Arg.NotNull( dataGrid, nameof( dataGrid ) );
return (IEnumerable<DataGridColumn>) dataGrid.GetValue( ColumnsProperty );
}
示例6: GetDataGridRollbackOnUnfocused
public static bool GetDataGridRollbackOnUnfocused(DataGrid datagrid)
{
return (bool)datagrid.GetValue(DataGridRollbackOnUnfocusedProperty);
}
示例7: GetIsColumnSettingsEnabled
public static bool GetIsColumnSettingsEnabled(DataGrid dataGrid)
{
return (bool)dataGrid.GetValue(IsColumnSettingsEnabledProperty);
}
示例8: GetColumnSettings
public static string GetColumnSettings(DataGrid dataGrid)
{
return (string)dataGrid.GetValue(ColumnSettingsProperty);
}
示例9: GetCommand
/// <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;
}
示例10: GetLastColumnFill
public static bool GetLastColumnFill(DataGrid element)
{
return (bool)element.GetValue(LastColumnFillProperty);
}
示例11: GetDataGridMiddleButtonScroll
public static bool GetDataGridMiddleButtonScroll(DataGrid datagrid)
{
return (bool)datagrid.GetValue(DataGridMiddleButtonScrollProperty);
}
示例12: GetIsSelectionFixEnabled
public static bool GetIsSelectionFixEnabled(DataGrid element)
{
return (bool)element.GetValue(IsSelectionFixEnabledProperty);
}
示例13: GetGroupRowTemplate
public static DataTemplate GetGroupRowTemplate(DataGrid ui)
{
return (DataTemplate)ui.GetValue(GroupRowTemplateProperty);
}
示例14: GetFiltersContainer
public static FiltersContainer GetFiltersContainer(DataGrid grid)
{
return (FiltersContainer) grid.GetValue(FiltersContainerProperty);
}
示例15: GetSelectedItems
public static IList GetSelectedItems( DataGrid dataGrid )
{
Arg.NotNull( dataGrid, nameof( dataGrid ) );
return (IList) dataGrid.GetValue( SelectedItemsProperty );
}