Skip to content

ResourceDictionaries can't be previewed without Desgin.PreviewWith #20

@MikeyWetzel

Description

@MikeyWetzel

I'm looking at the Solitaire example to learn Avalonia and the above error is throwing me off.

Can you add the necessary <Design.PreviewWith> to all the items in the Styles directory? For example, ButtonCard.axaml:

<Design.PreviewWith>
	<Border Padding="20" Background="Gray">
		<Button Content="Button" />
	</Border>
</Design.PreviewWith>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions