コード例 #1
0
        public ICommand ShowPopupWindowCommand(
            PopupWindow popupWindow,
            Action <object> receiver,
            Window current
            )
        {
            var returnCommand = ChangeWindowCommand(current);

            popupWindow.SetActionReceiver(o =>
            {
                receiver?.Invoke(o);
                returnCommand.Execute();
            });

            return(ChangeWindowCommand(popupWindow));
        }