UI Controls

Standard Controls

A complete reference of native UI elements available in Nimbus. These map directly to WPF controls.


1. TextBlock

Displays read-only text. Supports binding and basic formatting.

Header Subtitle text here...
App.xml
<TextBlock 
    Text="Header" 
    FontSize="24" 
    FontWeight="Bold"
    Foreground="White"/>

<TextBlock 
    Text="Subtitle text here..." 
    FontSize="14" 
    Foreground="#888"/>

2. Button

Clickable element that triggers an event handler.

<Button Content="Default" onClick="Handler1"/>

<Button Content="Success" Background="#107C10" onClick="Handler2"/>

<Button Content="Danger" Background="#E81123" onClick="Handler3"/>
mouse
Note: You can also use onRightClick and onMouseEnter events on buttons.

3. TextBox

Editable text input field. Supports placeholders.

<TextBox 
    Name="txtName" 
    Placeholder="Type something..." 
    Width="200"/>

<PasswordBox 
    Name="txtPass" 
    Width="200"/>

4. Selection Controls

CheckBoxes, RadioButtons, and ComboBoxes.

<CheckBox Content="Remember Me" IsChecked="True"/>

<ComboBox Width="150">
    <ComboBoxItem Content="Option 1" IsSelected="True"/>
    <ComboBoxItem Content="Option 2"/>
</ComboBox>

5. Ranges & Progress

Sliders and ProgressBars for visualizing values.

<Slider 
    Minimum="0" Maximum="100" Value="60" 
    Width="200" onValueChanged="HandleChange"/>

<ProgressBar 
    Value="60" Maximum="100" 
    Width="200" Height="4" 
    Foreground="#0078D4"/>

6. Image

Displays an image from a URL or local path.

<Image 
    Source="assets/logo.png" 
    Width="100" Height="100" 
    Stretch="Uniform"/>