Table of Contents

Class DesignData

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

Sample values used to render a .view.xml in a designer/preview, standing in for the view model a real run would bind against. Loaded only by design-time tooling (the render host and the VS Code preview) - the runtime ViewManager never looks at these files, so they cost nothing in a shipped game.

Convention: a view at Foo.view.xml is paired with Foo.designdata.xml beside it.

Without this, a preview renders every "{Binding X}" as that literal string, which is actively misleading rather than merely unhelpful: long placeholders overflow columns that real values fit fine, and every Visible="{Binding X}" section renders at once, showing a combination of state the running app can never actually be in.

public class DesignData
Inheritance
DesignData
Inherited Members

Properties

Collections

The sample rows for bound collections, one block per repeater's ItemsSource.

public List<DesignDataItems> Collections { get; set; }

Property Value

List<DesignDataItems>

Properties

The sample values, one per bound property name.

public List<DesignDataProperty> Properties { get; set; }

Property Value

List<DesignDataProperty>