Show / Hide Table of Contents

Method BindToComboBox

| Improve this Doc View Source

BindToComboBox<T>(EnumColumn<T>)

Binds an enum column to System.Windows.Controls.ComboBox.

Declaration
public static RowBinding<ComboBox> BindToComboBox<T>(this EnumColumn<T> source)

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

The source column.

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

The row binding object.

Type Parameters
Name Description
T

The type of the enum.

| Improve this Doc View Source

BindToComboBox<T>(Column<T>, IEnumerable, String, String)

Binds a column to System.Windows.Controls.ComboBox.

Declaration
public static RowBinding<ComboBox> BindToComboBox<T>(this Column<T> source, IEnumerable dropDownList, string selectedValuePath = "Value", string displayMemberPath = "Display")
Parameters
Type Name Description
Column<T> source

The source column.

System.Collections.IEnumerable dropDownList

Data of drop-down list.

System.String selectedValuePath

The path that is used to get the selected value from drop-down list.

System.String displayMemberPath

The path to serve as the visual representation of the drop-down list item.

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

The row binding object.

Type Parameters
Name Description
T

The data type of the column.

| Improve this Doc View Source

BindToComboBox<T>(Column<T>, Column<IEnumerable>, String, String)

Binds a column to System.Windows.Controls.ComboBox.

Declaration
public static RowBinding<ComboBox> BindToComboBox<T>(this Column<T> source, Column<IEnumerable> dropDownList, string selectedValuePath = "Value", string displayMemberPath = "Display")
Parameters
Type Name Description
Column<T> source

The source column.

Column<System.Collections.IEnumerable> dropDownList

Data of drop-down list.

System.String selectedValuePath

The path that is used to get the selected value from drop-down list.

System.String displayMemberPath

The path to serve as the visual representation of the drop-down list item.

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

The row binding object.

Type Parameters
Name Description
T

The data type of the column.

| Improve this Doc View Source

BindToComboBox<T>(Scalar<T>, IEnumerable, String, String)

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

Declaration
public static ScalarBinding<ComboBox> BindToComboBox<T>(this Scalar<T> source, IEnumerable dropDownList, string selectedValuePath = "Value", string displayMemberPath = "Display")
Parameters
Type Name Description
Scalar<T> source

The source scalar data.

System.Collections.IEnumerable dropDownList

Data of drop-down list.

System.String selectedValuePath

The path that is used to get the selected value from drop-down list.

System.String displayMemberPath

The path to serve as the visual representation of the drop-down list item.

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

The scalar binding object.

Type Parameters
Name Description
T

The data type of the column.

| Improve this Doc View Source

BindToComboBox<T>(Scalar<T>, Scalar<IEnumerable>, String, String)

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

Declaration
public static ScalarBinding<ComboBox> BindToComboBox<T>(this Scalar<T> source, Scalar<IEnumerable> dropDownList, string selectedValuePath = "Value", string displayMemberPath = "Display")
Parameters
Type Name Description
Scalar<T> source

The source scalar data.

Scalar<System.Collections.IEnumerable> dropDownList

Data of drop-down list.

System.String selectedValuePath

The path that is used to get the selected value from drop-down list.

System.String displayMemberPath

The path to serve as the visual representation of the drop-down list item.

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

The scalar binding object.

Type Parameters
Name Description
T

The data type of the column.

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