wpf - Close Dialog with Prism Region Manager -
i have wpf/prism application in opened window using following code:
regionmanager.requestblockingdialognavigate(myviewmodel); how close window without using code behind?
thanks.
i achieved goal doing else. pass whole window parameter of closecommand , close viewmodel.
<button content="close" command="{binding closecommand}" commandparameter="{binding elementname=mywindow}" /> and in view model, did this:
public delegatecommand<window> closecommand { get; private set;} public myviewmodel() { closecommand = new delegatecommand<window>(close); } public void close(window window) { window.close(); } i thought there in prism it. haven't found far.
thanks
Comments
Post a Comment