denpalrius / Material-Message-Box

A WPF Message Box implementing material design
MIT License
84 stars 13 forks source link

Custom Message box buttons #11

Closed jeranio closed 3 years ago

jeranio commented 5 years ago
        var msg = new CustomMaterialMessageBox
        {
            TxtMessage = { Text = _Message, Foreground =  Brushes.White},
            TxtTitle = { Text = _Title, Foreground = Brushes.White },
            BtnOk = { Content = "OK" },
            MainContentControl = { Background = myBackBrush },
            TitleBackgroundPanel = { Background = myTitleBrush },
            BorderBrush = Brushes.White
        };

This code still produces a cancel button yet the button is not defined.

hubertkrzepkowski commented 5 years ago

BtnCancel = { Visibility = Visibility.Hidden },