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