12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace Aitex.Core.UI.Dialog
- {
- /// <summary>
- /// NotificationDialogNoDelay.xaml 的交互逻辑
- /// </summary>
- public partial class NotificationDialogNoDelay : Window
- {
- public NotificationDialogNoDelay()
- {
- InitializeComponent();
- BannerColor = Brushes.DodgerBlue;
- }
- /// <summary>
- /// close current window
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void buttonOK_Click(object sender, RoutedEventArgs e)
- {
- Close();
- }
- /// <summary>
- /// Message title
- /// </summary>
- public string MessageTitle
- {
- get
- {
- return _msgTitle.Text;
- }
- set
- {
- _msgTitle.Text = value;
- }
- }
- /// <summary>
- /// Message content
- /// </summary>
- public string MessageContent
- {
- get
- {
- return _msgContent.Text;
- }
- set
- {
- _msgContent.Text = value;
- }
- }
- /// <summary>
- /// Banner color
- /// </summary>
- public Brush BannerColor
- {
- get
- {
- return topGrid.Background;
- }
- set
- {
- topGrid.Background = value;
- }
- }
- }
- }
|