Method BindToCheckBox
| Improve this Doc View SourceBindToCheckBox(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |