Skip to content

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

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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