예제 #1
0
        public Window1()
        {
            InitializeComponent();

            TitleText   = "Task Dialog Options";
            Header      = "The Header text for the message box.";
            ContentText = "The Content text for the message box. This text will automatically wrap and is selectable";
            Detail      = "The Detail text for the message box. This text will automatically wrap and is selectable";
            Footer      = "The Footer text for the message box.";
            Button1Text = "Button1";
            Button2Text = "Button2";
            Button3Text = "Button3";

            _sound            = TaskDialogSound.Beep;
            _headerBackground = Brushes.White;
            _headerForeground = Brushes.Navy;
            _headerIcon       = TaskDialogIcon.Information;
            _footerIcon       = TaskDialogIcon.Shield;
            _button           = TaskDialogButton.Ok;
        }
예제 #2
0
 private void Sound_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     _sound = (TaskDialogSound)e.AddedItems[0];
 }