Closed Gigas002 closed 2 years ago
Sorry for the long answer.
I will try to take the time and fix it soon.
Seems like i can't reproduce this.
I copied the code and repeated all the steps, but everything works for me.
Here is my project: MyApp.zip
@SKProCH Thank you for your answer, and sorry, that I didn't provide full reproducable code sample. Seems like this problem only occurs when setting <FluentTheme Mode="Dark"/>
in App.axaml
.
Seems like there a white text on white background. If i change dialog content background color to Black i get this:
Ah, that's how it is. Thought it would automatically catch up with the selected theme (at least user control itself seems to find it correctly). Is this an expected behaviour and I should set the background by myself, or is it a bug?
I think this is a bug and I'm writing a fix right now. But in general, yes, you can fix it yourself.
It fixed in 0.2.1 version
I've written a simple program with avalonia's mvvm template. Here's my
MainWindowView.xaml
code:And here's
MainViewModel
's code:I want to show message box on this button's click, so I wrote a simple
UserControl
andViewModel
for it.View's code:
ViewModel's code:
But when I click on the button, I can't see the desired
UserControl
:That's how it looks in VS's designer:
Though I must say, that when I click on areas, where buttons should be, the dialog closes successfully, and I receive desired
DialogResult
.