예제 #1
0
    /// <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);
    }
예제 #2
0
 private static void SetColumnBinder(this DataGrid dataGrid, ColumnBinder columnBinder)
 {
     dataGrid.SetValue(ColumnBinderProperty, columnBinder);
 }