public AboutPrompt() { DefaultStyleKey = typeof(AboutPrompt); var okButton = new RoundButton(); okButton.Click += ok_Click; ActionPopUpButtons.Add(okButton); }
protected UserPrompt() { var okButton = new RoundButton(); _cancelButton = new RoundButton(); okButton.Click += OkClick; _cancelButton.Click += CancelledClick; ActionPopUpButtons.Add(okButton); ActionPopUpButtons.Add(_cancelButton); SetCancelButtonVisibility(IsCancelVisible); }
protected UserPrompt() { var okButton = new RoundButton(); _cancelButton = new RoundButton { ImageSource = new BitmapImage( new Uri( "/Coding4Fun.Phone.Controls;component/Media/icons/appbar.cancel.rest.png", UriKind.RelativeOrAbsolute)) }; okButton.Click += ok_Click; _cancelButton.Click += cancelled_Click; ActionPopUpButtons.Add(okButton); ActionPopUpButtons.Add(_cancelButton); SetCancelButtonVisibility(IsCancelVisible); }