public static void userAnswer_Execute(MessageDialogControl messageControl)
 {
     if (messageControl.userInteractionEvent != null)
     {
         messageControl.userInteractionEvent.Set();
     }
     Application.Current.Dispatcher.Invoke(new Action(() =>
                                                      VisualStateManager.GoToState(messageControl, "Hidden", true)));
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.PopUp = ((AppliMariage.Controls.MessageDialogControl)(target));
         return;
     }
     this._contentLoaded = true;
 }