コード例 #1
0
        private static void OnRowHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadDataGrid table = d as RadDataGrid;

            if (table != null)
            {
                table.model.RowHeight = (double)e.NewValue;
                table.updateService.RegisterUpdate(UpdateFlags.None);
            }
        }
コード例 #2
0
        private static void OnUserGroupModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadDataGrid grid = d as RadDataGrid;

            if (grid.IsTemplateApplied)
            {
                grid.UpdateServicePanelVisibility();
                grid.InvalidateMeasure();
            }
        }
コード例 #3
0
        void IGridView.Arrange(Node node)
        {
            GridEditRowModel editRow = node as GridEditRowModel;

            if (editRow != null)
            {
                this.ArrangeEditRow(editRow);
                return;
            }

            GridRowModel row = node as GridRowModel;

            if (row != null)
            {
                RadDataGrid.ArrangeRow(row);
                return;
            }

            GridHeaderCellModel headerCell = node as GridHeaderCellModel;

            if (headerCell != null)
            {
                this.ArrangeHeaderCell(headerCell);
                return;
            }

            GridCellEditorModel editCell = node as GridCellEditorModel;

            if (editCell != null)
            {
                this.ArrangeEditorCell(editCell);
            }

            GridCellModel cell = node as GridCellModel;

            if (cell != null)
            {
                this.ArrangeCell(cell);
            }
        }
コード例 #4
0
 public XamlGridRowGenerator(RadDataGrid owner)
 {
     this.owner = owner;
 }
コード例 #5
0
 private void RaiseValidateCommands(RadDataGrid grid, ValidateCellContext context)
 {
     grid.CommandService.ExecuteCommand(CommandId.ValidateCell, context);
 }
コード例 #6
0
 public XamlGridEditCellGenerator(RadDataGrid owner)
 {
     this.owner = owner;
 }
コード例 #7
0
 public XamlGridHeaderCellGenerator(RadDataGrid owner)
 {
     this.owner = owner;
 }
コード例 #8
0
ファイル: DataGridDataView.cs プロジェクト: zyhong/UI-For-UWP
 internal DataGridDataView(RadDataGrid grid)
 {
     this.owner = grid;
     this.model = this.owner.Model;
 }
コード例 #9
0
ファイル: RadDataGrid.cs プロジェクト: zyhong/UI-For-UWP
        private static void OnListenForNestedPropertyChangePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadDataGrid grid = d as RadDataGrid;

            grid.model.ListenForNestedPropertyChange = (bool)e.NewValue;
        }