Skip to content
FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    Edit XAML with Designer Studio

    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.

    Terminal window
    cargo run -p designer-studio -- --file docs/designer/samples/DesignWorkflows.xaml

    To 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.

    1. Switch to Split to show the artboard and XAML together.
    2. Select a label or input in the hierarchy and change its margin or alignment.
    3. Inspect the corresponding XAML change to learn which property controls the result.
    4. Narrow the preview and check wrapping and input width.
    5. 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.

    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.

    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.