development-plugin-for-avalonia

Fluent Motion, Content Tone, Wait UX, and Accessibility Recipes

Scope and Primary APIs

Use this reference to finish Fluent experiences with restrained motion and strong usability.

Primary APIs:

Motion Recipe

<Border xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Classes="fluent-card"
        RenderTransform="translateY(0px)">
  <Border.Transitions>
    <Transitions>
      <TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.16" />
      <BoxShadowsTransition Property="BoxShadow" Duration="0:0:0.16" />
    </Transitions>
  </Border.Transitions>
</Border>

Wait and Content Tone

Guidance:

<StackPanel xmlns="https://github.com/avaloniaui"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Spacing="12">
  <TextBlock Text="Checking deployment readiness" />
  <ProgressBar IsIndeterminate="True" />
  <TextBlock Foreground="{DynamicResource Brush.Text.Secondary}"
             Text="This usually takes a few seconds." />
</StackPanel>

Accessibility Review

AOT and Runtime Notes

Do and Don’t Guidance

Do:

Do not:

Troubleshooting

  1. Fluent UI feels flashy rather than calm.
    • Reduce animation distance, accent saturation, and shadow depth together.
  2. Wait states feel generic.
    • Write task-specific copy and provide clear next actions for failure or empty results.
  3. Accessibility regresses after brand theming.
    • Re-check contrast, focus visibility, and automation names across both variants.

Official Resources