Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cast object of type 'Avalonia.Media.Color' to type 'Avalonia.Media.IBrush'. #155

Open
CoolCoolTomato opened this issue Sep 18, 2024 · 1 comment

Comments

@CoolCoolTomato
Copy link

When I modify the variables in the Binding, if there is codeBlock content, an error will occur and the Markdown content will not be rendered.
ContentString like this:

` ` `
a
` ` `

Error:

[Binding]An error occurred binding 'Markdown' to 'ContentString' at 'ContentString': 'Unable to cast object of type 'Avalonia.Media.Color' to type 'Avalonia.Media.IBrush'.' (MarkdownScrollViewer #40133923)

Code:

<md:MarkdownScrollViewer 
                Markdown="{Binding ContentString}"
                Margin="5"
                MaxWidth="1000"/>
@ArchLeaders
Copy link

Likely a duplicate of #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants