More resources on launching dialogs? #17881
-
Hi, I am following the Avalonia example for launching dialog windows: https://docs.avaloniaui.net/docs/tutorials/music-store-app/opening-a-dialog I am still getting some Exceptions thrown when I try to follow this technique. Does anyone have some additional samples they can share where this is done? I am trying to have a separate window that launches when the user presses a button on the main window. The user will interact with this new window and data will be returned from that window to the Main View Model for processing. This is what I've done so far: In main ViewModel, add an Interaction property, and a ICommand property:
Then in the constructor of MainViewModel:
There is a button on my MainWindowView that is bound to 'AddInstrumentCommand'. Then in the code-behing of MainWindow I added this:
but I don't know where this is called, if at all. And when I try to run the code, I get the exception:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You may also want to check out Avalonia.Samples ViewIngeraction |
Beta Was this translation helpful? Give feedback.
https://github.com/AvaloniaUI/Avalonia.Samples