Widgets Showcase Example
The Widgets Showcase example demonstrates various widget types and their features in a single application.
What It Demonstrates
Section titled “What It Demonstrates”- Multiple widget types
- Different label styles (normal, bold, italic)
- TextView with scrolling
- StatusBar usage
- Container layout modes
- Widget styling options
Key Features
Section titled “Key Features”Label Styles
Section titled “Label Styles”var normalLabel = new Label("Normal Label");var boldLabel = new Label("Bold Label") { Bold = true };var italicLabel = new Label("Italic Label") { Italic = true };TextView
Section titled “TextView”var textView = new TextView();textView.AppendLine("This is a scrollable text view.");textView.AppendLine("You can add multiple lines of text.");textView.AppendLine("Use Arrow keys to scroll up/down.");Container Layout
Section titled “Container Layout”var container = new Container{ LayoutMode = LayoutMode.Vertical, Padding = 1, Spacing = 1};Running the Example
Section titled “Running the Example”cd examples/Elaris.Examples.Widgetsdotnet runLearning Points
Section titled “Learning Points”- Different widgets serve different purposes
- Labels support various text styles
- TextView provides scrolling for long content
- Containers organize widgets efficiently