Show / Hide Table of Contents

Method BindToCheckBox

| Improve this Doc View Source

BindToCheckBox(DataPresenter)

Binds DataPresenter to System.Windows.Controls.CheckBox to select/deselect all rows.

Declaration
public static ScalarBinding<CheckBox> BindToCheckBox(this DataPresenter dataPresenter)
Parameters
Type Name Description
DataPresenter dataPresenter

The DataPresenter

Returns
Type Description
ScalarBinding<System.Windows.Controls.CheckBox>

The scalar binding object.

| Improve this Doc View Source

BindToCheckBox(Model)

Binds Model to System.Windows.Controls.CheckBox to select current row.

Declaration
public static RowBinding<CheckBox> BindToCheckBox(this Model model)
Parameters
Type Name Description
Model model

The model of the DataSet.

Returns
Type Description
RowBinding<System.Windows.Controls.CheckBox>

The row binding object.

| Improve this Doc View Source

BindToCheckBox(Column<Nullable<Boolean>>, Object)

Binds a nullable boolean column to System.Windows.Controls.CheckBox.

Declaration
public static RowBinding<CheckBox> BindToCheckBox(this Column<bool? > source, object title = null)
Parameters
Type Name Description
Column<System.Nullable<System.Boolean>> source

The source column.

System.Object title

The title of the CheckBox. If null, the value of DisplayName will be used.

Returns
Type Description
RowBinding<System.Windows.Controls.CheckBox>

The row binding object.

| Improve this Doc View Source

BindToCheckBox(Column<Boolean>, Object)

Binds a boolean column to System.Windows.Controls.CheckBox.

Declaration
public static RowBinding<CheckBox> BindToCheckBox(this Column<bool> source, object title = null)
Parameters
Type Name Description
Column<System.Boolean> source

The source column.

System.Object title

The title of the CheckBox. If null, the value of DisplayName will be used.

Returns
Type Description
RowBinding<System.Windows.Controls.CheckBox>

The row binding object.

| Improve this Doc View Source

BindToCheckBox<T>(Column<T>, T, Object)

Binds an enum value column to System.Windows.Controls.CheckBox.

Declaration
public static RowBinding<CheckBox> BindToCheckBox<T>(this Column<T> source, T enumMemberValue, object title = null)

    where T : struct, IConvertible
Parameters
Type Name Description
Column<T> source

The source column.

T enumMemberValue

The value of enum member.

System.Object title

The title of the CheckBox. If null, the name of enum member will be used.

Returns
Type Description
RowBinding<System.Windows.Controls.CheckBox>

The row binding object.

Type Parameters
Name Description
T

The enum type.

| Improve this Doc View Source

BindToCheckBox<T>(Column<Nullable<T>>, T, Object)

Binds a nullable enum value column to System.Windows.Controls.CheckBox.

Declaration
public static RowBinding<CheckBox> BindToCheckBox<T>(this Column<T? > source, T enumMemberValue, object title = null)

    where T : struct, IConvertible
Parameters
Type Name Description
Column<System.Nullable<T>> source

The source column.

T enumMemberValue

The value of enum member.

System.Object title

The title of the CheckBox. If null, the name of enum member will be used.

Returns
Type Description
RowBinding<System.Windows.Controls.CheckBox>

The row binding object.

Type Parameters
Name Description
T

The enum type.

| Improve this Doc View Source

BindToCheckBox(Scalar<Nullable<Boolean>>, Object)

Binds a nullable scalar data to System.Windows.Controls.CheckBox.

Declaration
public static ScalarBinding<CheckBox> BindToCheckBox(this Scalar<bool? > source, object title = null)
Parameters
Type Name Description
Scalar<System.Nullable<System.Boolean>> source

The source scalar data.

System.Object title

The title of the CheckBox.

Returns
Type Description
ScalarBinding<System.Windows.Controls.CheckBox>

The scalar binding object.

| Improve this Doc View Source

BindToCheckBox(Scalar<Boolean>, Object)

Binds a scalar data to System.Windows.Controls.CheckBox.

Declaration
public static ScalarBinding<CheckBox> BindToCheckBox(this Scalar<bool> source, object title = null)
Parameters
Type Name Description
Scalar<System.Boolean> source

The source scalar data.

System.Object title

The title of the CheckBox.

Returns
Type Description
ScalarBinding<System.Windows.Controls.CheckBox>

The scalar binding object.

| Improve this Doc View Source

BindToCheckBox<T>(Scalar<T>, T, Object)

Binds an enum scalar data to System.Windows.Controls.CheckBox.

Declaration
public static ScalarBinding<CheckBox> BindToCheckBox<T>(this Scalar<T> source, T enumMemberValue, object title = null)

    where T : struct, IConvertible
Parameters
Type Name Description
Scalar<T> source

The source scalar data.

T enumMemberValue

The value of enum member.

System.Object title

The title of the CheckBox. If null, the name of enum member will be used.

Returns
Type Description
ScalarBinding<System.Windows.Controls.CheckBox>

The scalar binding object.

Type Parameters
Name Description
T

The enum type.

| Improve this Doc View Source

BindToCheckBox<T>(Scalar<Nullable<T>>, T, Object)

Binds a nullable enum scalar data to System.Windows.Controls.CheckBox.

Declaration
public static ScalarBinding<CheckBox> BindToCheckBox<T>(this Scalar<T? > source, T enumMemberValue, object title = null)

    where T : struct, IConvertible
Parameters
Type Name Description
Scalar<System.Nullable<T>> source

The source scalar data.

T enumMemberValue

The value of enum member.

System.Object title

The title of the CheckBox. If null, the name of enum member will be used.

Returns
Type Description
ScalarBinding<System.Windows.Controls.CheckBox>

The scalar binding object.

Type Parameters
Name Description
T

The enum type.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest