コード例 #1
0
        /// <summary>
        /// Shows the dice roll dialog
        /// </summary>
        public void ShowDiceRollDialog(string title, string toRoll)
        {
            ModalDialog modalDialog = new ModalDialog();

            if (_parentWindow != null)
            {
                modalDialog.Owner = _parentWindow;
            }

            DiceRollView diceRollView = new DiceRollView();

            diceRollView.ViewModel.RollString = toRoll;

            modalDialog.WindowTitle = title;
            modalDialog.Body        = diceRollView;

            ShowDialog(modalDialog);
        }
コード例 #2
0
ファイル: Roll.cs プロジェクト: zeik07/TabletopDiceRoller
 public async void DisplayRoll(DisplayItem display)
 {
     var popUpPage = new DiceRollView(display.Die, display.Roll, display.Values, display.Save);
     await App.Current.MainPage.Navigation.PushPopupAsync(popUpPage, false);
 }