Class SelectableItem
A view model that can be selected. This is useful for list boxes and combo boxes when you want to bind to a list of items but don't want to use a complex object.
Inherited Members
Namespace: Benday.Presentation
Assembly: Benday.Presentation.dll
Syntax
public class SelectableItem : ViewModelBase, ISelectableItem, ISelectable, INotifyPropertyChangedConstructors
| Edit this page View SourceSelectableItem()
Declaration
public SelectableItem()SelectableItem(bool, string)
Initializes a new instance of the SelectableItem class.
Declaration
public SelectableItem(bool isSelected, string text)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | isSelected | |
| string | text | 
SelectableItem(bool, string, int)
Declaration
public SelectableItem(bool isSelected, string text, int value)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | isSelected | |
| string | text | |
| int | value | 
SelectableItem(bool, string, string, string)
Initializes a new instance of the SelectableItemViewModel class.
Declaration
public SelectableItem(bool isSelected, string text, string value, string tooltipText)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | isSelected | |
| string | text | |
| string | value | |
| string | tooltipText | 
Properties
| Edit this page View SourceId
Gets or sets the Id property. This observable property.
Declaration
public int Id { get; set; }Property Value
| Type | Description | 
|---|---|
| int | 
IsSelected
Gets or sets the IsSelected property. This observable property.
Declaration
public bool IsSelected { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
Text
Gets or sets the Text property. This observable property.
Declaration
public string Text { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
TooltipText
Gets or sets the TooltipText property. This observable property.
Declaration
public string TooltipText { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
Value
Gets or sets the Value property. This observable property.
Declaration
public string Value { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
Methods
| Edit this page View SourceToString()
Returns the value of the Text property.
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| string |