Class
DropDownListsSectionViewModel

Represents the DropDownListsSectionViewModel class.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class DropDownListsSectionViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IEditableObject

Inheritance: objectViewModelBaseDropDownListsSectionViewModel

Implements: IDisposableIEditableObjectINotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

DropDownListsSectionViewModel(ComboBoxProperties)

Constructs the DropDownListsSectionViewModel.

Declaration

cs-api-definition
public DropDownListsSectionViewModel(ComboBoxProperties comboBoxPropertiesProperties)

Parameters

comboBoxPropertiesProperties

ComboBoxProperties

The combo box properties.

Properties

Items

Gets or sets the items.

Declaration

cs-api-definition
public ObservableCollection<ListItemViewModel> Items { get; set; }

Property Value

ObservableCollection<ListItemViewModel>

SelectedItem

Gets or sets the selected item.

Declaration

cs-api-definition
public ListItemViewModel SelectedItem { get; set; }

Property Value

ListItemViewModel

Methods

AddItem(ListItemViewModel)

Adds new list item.

Declaration

cs-api-definition
public void AddItem(ListItemViewModel listItem)

Parameters

listItem

ListItemViewModel

The item to be added.

BeginEdit()

Starts the editing cycle.

Declaration

cs-api-definition
public void BeginEdit()

Implements IEditableObject.BeginEdit()

CancelEdit()

Finishes the editing cycle and reverts all the changes.

Declaration

cs-api-definition
public void CancelEdit()

Implements IEditableObject.CancelEdit()

EndEdit()

Finishes the editing cycle and retains all the changes.

Declaration

cs-api-definition
public void EndEdit()

Implements IEditableObject.EndEdit()

MoveSelectedItemDown()

Moves the selected item down in the list.

Declaration

cs-api-definition
public void MoveSelectedItemDown()

MoveSelectedItemUp()

Moves the selected item up in the list.

Declaration

cs-api-definition
public void MoveSelectedItemUp()

RemoveSelectedItem()

Removes the selected item.

Declaration

cs-api-definition
public void RemoveSelectedItem()