コード例 #1
0
        public bool MsgPregunta(string Mensaje, string Titulo)
        {
            var messageBox = new AmRoMessageBox
            {
                Background            = "#333333",
                TextColor             = "#ffffff",
                IconColor             = "#3399ff",
                RippleEffectColor     = "#000000",
                ClickEffectColor      = "#1F2023",
                ShowMessageWithEffect = true,
                EffectArea            = this,
                ParentWindow          = this
            };
            var result = messageBox.Show(Mensaje, Titulo, AmRoMessageBoxButton.OkCancel);

            return(result == AmRoMessageBoxResult.Ok);
        }
コード例 #2
0
 private void BtnNonStaticMessageBox1_OnClick(object sender, RoutedEventArgs e)
 {
     _messageBox.Show("This is a sample message");
 }