Show / Hide Table of Contents

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.

Inheritance
object
ViewModelBase
SelectableItem
Implements
ISelectableItem
ISelectable
INotifyPropertyChanged
Inherited Members
ViewModelBase.RaisePropertyChanged(string)
ViewModelBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Benday.Presentation
Assembly: Benday.Presentation.dll
Syntax
public class SelectableItem : ViewModelBase, ISelectableItem, ISelectable, INotifyPropertyChanged

Constructors

| Edit this page View Source

SelectableItem()

Declaration
public SelectableItem()
| Edit this page View Source

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
| Edit this page View Source

SelectableItem(bool, string, int)

Declaration
public SelectableItem(bool isSelected, string text, int value)
Parameters
Type Name Description
bool isSelected
string text
int value
| Edit this page View Source

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 Source

Id

Gets or sets the Id property. This observable property.

Declaration
public int Id { get; set; }
Property Value
Type Description
int
| Edit this page View Source

IsSelected

Gets or sets the IsSelected property. This observable property.

Declaration
public bool IsSelected { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Text

Gets or sets the Text property. This observable property.

Declaration
public string Text { get; set; }
Property Value
Type Description
string
| Edit this page View Source

TooltipText

Gets or sets the TooltipText property. This observable property.

Declaration
public string TooltipText { get; set; }
Property Value
Type Description
string
| Edit this page View Source

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 Source

ToString()

Returns the value of the Text property.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

ISelectableItem
ISelectable
INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com