/// <summary> /// Set the columns of the model that should be bound to grid. /// </summary> /// <param name="bindAllColumns">The action that will bind all the columns.</param> /// <returns>An <see cref="IGridBuilder{TModel}" /> that is used to construct the grid.</returns> public IGridBuilder <TModel> WithColumns(Action <IColumnBinder <TModel> > bindAllColumns) { var columnBinder = new ColumnBinder <TModel>(Constructor); bindAllColumns(columnBinder); return(this); }
private static void SetColumnBinder(this DataGrid dataGrid, ColumnBinder columnBinder) { dataGrid.SetValue(ColumnBinderProperty, columnBinder); }