当前位置: 首页>>代码示例>>C#>>正文


C# DataGrid.GetValue方法代码示例

本文整理汇总了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;
        }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:11,代码来源:DataGridSelect.cs

示例2: GetIsUpdatingColumnSettings

 public static bool GetIsUpdatingColumnSettings(DataGrid dataGrid)
 {
     return (bool)dataGrid.GetValue(IsUpdatingColumnSettingsProperty);
 }
开发者ID:ruisebastiao,项目名称:Elysium-Extra,代码行数:4,代码来源:DataGridAttached.cs

示例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);
 }
开发者ID:ruisebastiao,项目名称:Elysium-Extra,代码行数:10,代码来源:DataGridAttached.cs

示例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);
 }
开发者ID:ruisebastiao,项目名称:Elysium-Extra,代码行数:9,代码来源:DataGridAttached.cs

示例5: GetColumns

 public static IEnumerable<DataGridColumn> GetColumns( DataGrid dataGrid )
 {
     Arg.NotNull( dataGrid, nameof( dataGrid ) );
     return (IEnumerable<DataGridColumn>) dataGrid.GetValue( ColumnsProperty );
 }
开发者ID:WaffleSquirrel,项目名称:More,代码行数:5,代码来源:DataGridDecorator.cs

示例6: GetDataGridRollbackOnUnfocused

 public static bool GetDataGridRollbackOnUnfocused(DataGrid datagrid)
 {
     return (bool)datagrid.GetValue(DataGridRollbackOnUnfocusedProperty);
 }
开发者ID:Easy-DDI-Organizer,项目名称:EDO,代码行数:4,代码来源:DataGridRollbackOnUnfocusedBehaviour.cs

示例7: GetIsColumnSettingsEnabled

 public static bool GetIsColumnSettingsEnabled(DataGrid dataGrid)
 {
     return (bool)dataGrid.GetValue(IsColumnSettingsEnabledProperty);
 }
开发者ID:ruisebastiao,项目名称:Elysium-Extra,代码行数:4,代码来源:DataGridAttached.cs

示例8: GetColumnSettings

 public static string GetColumnSettings(DataGrid dataGrid)
 {
     return (string)dataGrid.GetValue(ColumnSettingsProperty);
 }
开发者ID:ruisebastiao,项目名称:Elysium-Extra,代码行数:4,代码来源:DataGridAttached.cs

示例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;
 }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:9,代码来源:DataGridSelect.cs

示例10: GetLastColumnFill

 public static bool GetLastColumnFill(DataGrid element)
 {
     return (bool)element.GetValue(LastColumnFillProperty);
 }
开发者ID:Blackjack92,项目名称:TimeManagement,代码行数:4,代码来源:DataGridExtensions.cs

示例11: GetDataGridMiddleButtonScroll

		public static bool GetDataGridMiddleButtonScroll(DataGrid datagrid)
		{
			return (bool)datagrid.GetValue(DataGridMiddleButtonScrollProperty);
		}
开发者ID:xbadcode,项目名称:Rubezh,代码行数:4,代码来源:DataGridProperties.cs

示例12: GetIsSelectionFixEnabled

		public static bool GetIsSelectionFixEnabled(DataGrid element)
		{
			return (bool)element.GetValue(IsSelectionFixEnabledProperty);
		}
开发者ID:xbadcode,项目名称:Rubezh,代码行数:4,代码来源:DataGridSingleRowSelected.cs

示例13: GetGroupRowTemplate

 public static DataTemplate GetGroupRowTemplate(DataGrid ui)
 {
     return (DataTemplate)ui.GetValue(GroupRowTemplateProperty);
 }
开发者ID:DuBin1988,项目名称:restv2,代码行数:4,代码来源:ControlAttach.cs

示例14: GetFiltersContainer

 public static FiltersContainer GetFiltersContainer(DataGrid grid)
 {
     return (FiltersContainer) grid.GetValue(FiltersContainerProperty);
 }
开发者ID:MaxGaranin,项目名称:WpfSamples,代码行数:4,代码来源:ColumnItemsFilterControl.xaml.cs

示例15: GetSelectedItems

 public static IList GetSelectedItems( DataGrid dataGrid )
 {
     Arg.NotNull( dataGrid, nameof( dataGrid ) );
     return (IList) dataGrid.GetValue( SelectedItemsProperty );
 }
开发者ID:WaffleSquirrel,项目名称:More,代码行数:5,代码来源:DataGridDecorator.cs


注:本文中的System.Windows.Controls.DataGrid.GetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。