Hi,
I am using a XamRibbonWindow as popup for the user to confirm yes/no if he wants to save something in my application. The buttons yes and no are doing what they are suppose to do, but I cannot make the yes button after it does save the rule to close the window/popup. Any ideas how could I do that from the ViewModel.
XamRibbonWindow
I am looking forward to hearing from you!
Regards,
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
I found a solution that works.
<Button Margin="2,2,2,2" Name="YesButton" Content="Yes" Command="{Binding OkCommand}" Height="23" Width="75" > <i:Interaction.Triggers> <i:EventTrigger EventName="Click" > <ei:CallMethodAction MethodName="Close" TargetObject="{Binding ElementName=noNameView}" /> </i:EventTrigger> </i:Interaction.Triggers> </Button>