Table of Contents

Class DesignDataItems

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

Sample rows for one bound collection, so a repeater renders with content in a preview instead of as an empty box.

public class DesignDataItems
Inheritance
DesignDataItems
Inherited Members

Remarks

A flat name/value map can't express a collection, and a repeater is usually the whole point of the screen it sits on - previewing a server browser or a download queue with no rows shows the chrome and none of the thing being designed.

Properties

Items

The sample rows, in the order they should appear.

public List<DesignDataItem> Items { get; set; }

Property Value

List<DesignDataItem>

Name

The name of the bound collection: the X in ItemsSource's binding.

[Required]
public string Name { get; set; }

Property Value

string

SelectedIndex

The row to preview as selected, or -1 for none. Needs SelectionProperty to say where the selection is bound. -1 by default.

public int SelectedIndex { get; set; }

Property Value

int

SelectionProperty

The view model property the list's selected item is bound to.

public string SelectionProperty { get; set; }

Property Value

string