development-plugin-for-avalonia

Fluent Language System, Content, Commanding, and Teaching Patterns

Table of Contents

  1. Scope and Primary APIs
  2. Fluent Language-System Rules
  3. Commanding and Label Patterns
  4. Teaching, Empty, and Wait Content
  5. Localization and Review Rules
  6. AOT and Runtime Notes
  7. Do and Don’t Guidance
  8. Troubleshooting
  9. Official Resources

Scope and Primary APIs

Use this reference to extend Fluent beyond color, shape, and motion into content and command language.

Primary APIs:

This file covers:

Fluent Language-System Rules

Fluent content should feel:

Practical rules:

Good command patterns:

Weak command patterns:

Commanding and Label Patterns

<StackPanel xmlns="https://github.com/avaloniaui"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Spacing="8">
  <TextBlock FontSize="28"
             FontWeight="SemiBold"
             Text="Release pipeline" />
  <TextBlock Foreground="{DynamicResource Brush.Text.Secondary}"
             Text="Choose what should happen next." />

  <StackPanel Orientation="Horizontal" Spacing="8">
    <Button Theme="{StaticResource FluentPrimaryButtonTheme}" Content="Deploy now" />
    <Button Content="Schedule rollout" />
    <Button Content="View history" />
  </StackPanel>

  <Button Content="Delete environment"
          AutomationProperties.Name="Delete environment" />
</StackPanel>

Guidance:

Teaching, Empty, and Wait Content

<Border xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Padding="16"
        CornerRadius="12"
        Background="{DynamicResource Brush.Surface.Card}">
  <StackPanel Spacing="8">
    <TextBlock FontWeight="SemiBold" Text="Set up your first rollout" />
    <TextBlock Foreground="{DynamicResource Brush.Text.Secondary}"
               Text="Choose an environment, review checks, and then deploy when you are ready." />
    <Button Theme="{StaticResource FluentPrimaryButtonTheme}"
            Content="Start setup" />
  </StackPanel>
</Border>

Wait and recovery rules:

Localization and Review Rules

AOT and Runtime Notes

Do and Don’t Guidance

Do:

Do not:

Troubleshooting

  1. Fluent UI still feels generic.
    • The visual language may be fine, but the command and status language is not specific enough.
  2. Primary actions feel unclear.
    • Rewrite labels around user intent and make supporting text reduce uncertainty.
  3. Onboarding feels separate from the product.
    • Reuse the same typography, spacing, tone, and action hierarchy used in the main shell.

Official Resources