Exemplo n.º 1
0
 private void OnTouched()
 {
     MessagingCenter.Send <object>(this, "ShowDialog");
     if (AnimateCose)
     {
         ForceCloseCommand?.Execute(null);
     }
     else
     {
         ForceCloseCommand?.Execute(false);
     }
 }
Exemplo n.º 2
0
 void OnCloseCommand()
 {
     // ダサいけど、IsClosingAcceptedがtrueなら~の分岐がView側にあるので仕方ない
     if (IsClosingAccepted)
     {
         ForceCloseCommand.Execute(null);
     }
     else
     {
         QueryClosingCommand.Execute(null);
     }
 }