TaskDialog Binding
Closed this issue · 2 comments
kitUIN commented
I try to bind the properties of VM to TaskDialog
<ui:TaskDialog
Header="{Binding Greeting, Mode=OneWay}"
Name="TaskDialog1">
<ui:TaskDialog.Buttons>
<ui:TaskDialogButton DialogResult="OK" Text="OK" />
</ui:TaskDialog.Buttons>
</ui:TaskDialog>
When I launched it
this.FindControl<TaskDialog>("TaskDialog1").ShowAsync();
It can't show my property Greeting
, But it's normal for me to use other controls
Is there a way to do this xaml binding?
Current Version
FluentAvalonia : 2.0.5
Avalonia : 11.0.9
timunie commented
Make sure DataContext is set correctly for TaskDialog. You can use DevTools F12 to check it.
kitUIN commented
I do it!
🥰Thanks!