Designer Studio provides a visual workspace for XAML views: an artboard, source editor, hierarchy, properties, and native preview. Use it to adjust a view while seeing the same FerroUI controls your application uses. Declarative Rust views are edited in their source instead, with hot reload of rsx! literals for quick visual changes.
Designer Studio can run from the matching source checkout. Its package availability varies by release; check the API index before adding it as a dependency.
Open a working example
Section titled “Open a working example”cargo run -p designer-studio -- --file docs/designer/samples/DesignWorkflows.xamlTo open your own file, replace the argument with its absolute path. The workflow sample gives you a known-working starting point for layout, design data, and focus order.
Edit a small form
Section titled “Edit a small form”- Switch to Split to show the artboard and XAML together.
- Select a label or input in the hierarchy and change its margin or alignment.
- Inspect the corresponding XAML change to learn which property controls the result.
- Narrow the preview and check wrapping and input width.
- Use Preview to exercise the actual platform window, then save the source.
F6 cycles Design, Split, and XAML views. Use Fit to show the document, or Shift+2 to fit the current selection. Use Interact to operate controls instead of selecting them.
Preview realistic states
Section titled “Preview realistic states”Open the preview stages sample to compare loading, empty, content, and error states. Check narrow and wide layouts, light and dark themes, and long localized labels.
Design-only data lets you build a useful view before a service is available. Keep it distinct from persisted application state. Check keyboard order and labels with the Focus tools, then verify them in the running application.
When a document does not load
Section titled “When a document does not load”| Symptom | What to check |
|---|---|
| A custom type is unknown | Register its application metadata and resources |
x:Class cannot be created |
Supply the application’s preview root factory |
| Relative resources fail | Open the file with its original document location |
| A resource dictionary has no artboard | Supply a preview control that consumes those resources |
| Artboard succeeds but the app fails | Verify real services, code-behind, and platform startup |
A preview is most useful when it preserves the application’s actual types. Do not remove x:Class just to hide a missing registration error.
Relevant public controls and guides
Section titled “Relevant public controls and guides”- Grid, StackPanel, and TextBox — common form building blocks.
- XAML syntax, resources, and layout.
- Testing — verify the result outside the designer.