Class DesignTimeData
- Namespace
- Tudormobile.OpenTrivia.UI
- Assembly
- Tudormobile.OpenTrivia.UI.dll
Provides sample data for design-time previews.
public static class DesignTimeData
- Inheritance
-
DesignTimeData
- Inherited Members
Properties
SampleCategory
Gets a sample SelectableCategory for design-time preview.
public static SelectableCategory SampleCategory { get; }
Property Value
SampleCategoryCollection
Gets a sample collection of selectable trivia categories for use in design-time scenarios or testing.
public static CategoryCollection SampleCategoryCollection { get; }
Property Value
Remarks
The collection includes a variety of predefined categories, such as 'General Knowledge' and several entertainment-related categories. Each category is represented as a selectable item, with some categories marked as selected by default. This property is intended to provide representative data for UI development, previews, or demonstration purposes.
SampleCategoryUnselected
Gets a sample SelectableCategory for design-time preview.
public static SelectableCategory SampleCategoryUnselected { get; }
Property Value
SampleGameViewModel
Gets a static instance of the GameViewModel that is initialized with sample trivia game data.
public static GameViewModel SampleGameViewModel { get; }
Property Value
Remarks
Use this property to access a pre-configured GameViewModel for demonstration, design-time data binding, or testing scenarios. The returned instance is intended for sample or illustrative purposes and may not reflect actual application state.
SampleQuestion
Gets a sample SelectableQuestion for design-time preview.
public static SelectableQuestion SampleQuestion { get; }
Property Value
SampleTriviaGame
Gets a sample instance of a trivia game containing a predefined set of questions and categories.
public static TriviaGame SampleTriviaGame { get; }
Property Value
Remarks
This property provides a static instance of a trivia game that can be used for demonstration or testing purposes. The sample game includes a single trivia question in the 'General Knowledge' category, along with multiple incorrect answers.