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

How to change the background color? #179

Open
quantproai opened this issue Jan 8, 2024 · 2 comments
Open

How to change the background color? #179

quantproai opened this issue Jan 8, 2024 · 2 comments

Comments

@quantproai
Copy link

I would like to know how to change the background color of MessageBox.Avalonia?

@CreateLab
Copy link
Member

Owerride style for control

@pyking-wang
Copy link

pyking-wang commented Apr 18, 2024

Owerride 风格的控制

[Binding]An error occurred binding 'OverlayBackground' to '': 'Could not convert 'MainWindowViewModel' (MainWindowViewModel) to 'Avalonia.Media.IBrush'.' (DialogHost #59893061)
[Binding]An error occurred binding 'Background' to '': 'Could not convert 'MainWindowViewModel' (MainWindowViewModel) to 'Avalonia.Media.IBrush'.' (DialogHost #59893061)
In the latest version of Avalonia, the background color of the dialog box has become transparent and can be used normally with error messages. #ShowAsPopupAsync

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

3 participants