When I try to open usercontrol from SukiWindow it throws System.InvalidCastException in Debug mode #361
Unanswered
orangebobolink
asked this question in
Q&A
Replies: 1 comment
-
I found that if i change |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a small controll for TitileBar
I call it in MainWindow
But when I try to open "setting" app throws an exception (only in debug)
System.InvalidCastException: Unable to cast object of type 'Ias.AvaloniaUi.ViewModels.MainWindowViewModel' to type 'Ias.AvaloniaUi.ViewModels.RightWindowTitleBarViewModel'.
I am a new in Avalonia and I don't understande why it tries to cast
PS In the realse mode i can open it but RightWindowTitleBarViewModel aren't created and it can't binding command
Beta Was this translation helpful? Give feedback.
All reactions