Class LayoutColumnViewModel
Class containing the logic the columns in a layout.
Implements
Inherited Members
Namespace: Phoenix.Aruba.Layouts
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class LayoutColumnViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceLayoutColumnViewModel()
Initializes a new instance of the LayoutColumnViewModel class.
Declaration
public LayoutColumnViewModel()
LayoutColumnViewModel(LayoutEditorViewModel, LayoutSectionViewModel)
Initializes a new instance of the LayoutColumnViewModel class.
Declaration
public LayoutColumnViewModel(LayoutEditorViewModel parentEditor, LayoutSectionViewModel parentSection)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutEditorViewModel | parentEditor | The Layout Editor this VM is a child of. |
| LayoutSectionViewModel | parentSection | The Layout Section this VM is a child of. |
Properties
View SourceHasSelection
Gets or sets a value indicating whether this column currently has the selection in the layout.
Declaration
public bool HasSelection { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Items
Gets the items that are in the column.
Declaration
public ObservableCollection<LayoutItemBase> Items { get; }
Property Value
| Type | Description |
|---|---|
| ObservableCollection<LayoutItemBase> |
SelectedIndex
Gets or sets the currently selected index in the column.
Declaration
public int SelectedIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SelectedItem
Gets or sets the currently selected item in the column.
Declaration
public LayoutItemBase SelectedItem { get; set; }
Property Value
| Type | Description |
|---|---|
| LayoutItemBase |
Methods
View SourceAddField()
Adds a field to the collection of items.
Declaration
public void AddField()
AddHeader()
Adds a header to the collection of items.
Declaration
public void AddHeader()
MoveItemDown()
Moves the selected item down in the column.
Declaration
public void MoveItemDown()
MoveItemUp()
Moves the selected item up in the column.
Declaration
public void MoveItemUp()
RemoveColumn()
Removes this column from its parent.
Declaration
public void RemoveColumn()
RemoveItem()
Removes the currently selected item from the column.
Declaration
public void RemoveItem()
SetItems(ObservableCollection<LayoutItemBase>)
Sets the items in the column.
Declaration
public void SetItems(ObservableCollection<LayoutItemBase> items)
Parameters
| Type | Name | Description |
|---|---|---|
| ObservableCollection<LayoutItemBase> | items | The items to be added to the column. |