Skip to content

Widgets Showcase Example

The Widgets Showcase example demonstrates various widget types and their features in a single application.

  • Multiple widget types
  • Different label styles (normal, bold, italic)
  • TextView with scrolling
  • StatusBar usage
  • Container layout modes
  • Widget styling options
var normalLabel = new Label("Normal Label");
var boldLabel = new Label("Bold Label") { Bold = true };
var italicLabel = new Label("Italic Label") { Italic = true };
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.");
var container = new Container
{
LayoutMode = LayoutMode.Vertical,
Padding = 1,
Spacing = 1
};
Terminal window
cd examples/Elaris.Examples.Widgets
dotnet run
  • Different widgets serve different purposes
  • Labels support various text styles
  • TextView provides scrolling for long content
  • Containers organize widgets efficiently