Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
igRibbon:XamRibbonWindow
posted

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.

I am looking forward to hearing from you!

Regards,

Parents
No Data
Reply
  • 230
    posted

    Hi,

    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>

Children