You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Material.Avalonia v3.9.1 / Avalonia 11.2.3 / Windows 11 10.0.22631
Description
Many binding errors when using DialogHelper.CreateAlertDialog().
Reproduction Steps
In VS2022 run the Material.Avalonia.Demo.Desktop app, go Dialogs → Standalone Dialog → Dialog with Confirmation.
Debug output shows errors (see Actual Behavior below).
Expected Behavior
No binding errors.
Actual Behavior
[Binding]An error occurred binding 'Text' to 'SelectedGroup.KindToCopy' at 'SelectedGroup': 'Value is null.' (TextBox #66697461)
[Binding]An error occurred binding 'Kind' to 'SelectedGroup.KindValue' at 'SelectedGroup': 'Value is null.' (MaterialIcon #24111608)
[Binding]An error occurred binding 'Width' to 'Width': 'Could not convert '(null)' (null) to 'System.Double'.' (DockPanel #PART_RootPanel)
[Binding]An error occurred binding 'MaxWidth' to 'MaxWidth': 'Could not convert '(null)' (null) to 'System.Double'.' (DockPanel #PART_RootPanel)
Exception thrown: 'System.InvalidCastException' in System.Private.CoreLib.dll
[Binding]An error occurred binding 'IsVisible' to '!!DialogIcon' at '!': 'Unable to convert 'Material.Dialog.ViewModels.Elements.Header.Icons.DialogIconViewModel' to bool.' (ContentPresenter #PART_HeaderIcon)
Exception thrown: 'System.InvalidCastException' in Material.Avalonia.Dialogs.dll
[Binding]An error occurred binding 'Content' to 'DialogIcon' at 'DialogIcon': 'Unable to cast object of type 'Material.Dialog.ViewModels.Elements.Header.Icons.DialogIconViewModel' to type 'Material.Dialog.ViewModels.DialogWindowViewModel'.' (ContentPresenter #PART_HeaderIcon)
Exception thrown: 'System.ArgumentOutOfRangeException' in Material.Avalonia.Dialogs.dll
[Binding]An error occurred binding 'Content' to 'DialogIcon' at 'DialogIcon': 'Specified argument was out of the range of valid values.' (ContentPresenter #PART_HeaderIcon)
Exception thrown: 'System.InvalidCastException' in Material.Avalonia.Dialogs.dll
[Binding]An error occurred binding 'IsVisible' to '!!DialogIcon' at 'DialogIcon': 'Unable to cast object of type 'Material.Dialog.ViewModels.Elements.Header.Icons.DialogIconViewModel' to type 'Material.Dialog.ViewModels.DialogWindowViewModel'.' (ContentPresenter #PART_HeaderIcon)
Usage Information
Material.Avalonia v3.9.1 / Avalonia 11.2.3 / Windows 11 10.0.22631
Description
Many binding errors when using DialogHelper.CreateAlertDialog().
Reproduction Steps
In VS2022 run the Material.Avalonia.Demo.Desktop app, go Dialogs → Standalone Dialog → Dialog with Confirmation.
Debug output shows errors (see Actual Behavior below).
Expected Behavior
No binding errors.
Actual Behavior
Regression?
Possibly related to #168
Known Workarounds
No response
Anything else?
No response
Could you help with a pull-request?
No
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: