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