Exemple #1
0
        /// <summary>
        /// Construct the notification window for the message notification with the default
        /// <seealso cref="MessageNotificationWindowViewModel"/>.
        /// </summary>
        public MessageNotificationWindow()
        {
            this.InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
            DataContext = new MessageNotificationWindowViewModel();
        }
Exemple #2
0
        /// <summary>
        /// Construct the notification window for the message notification with the provided
        /// <seealso cref="MessageNotificationWindowViewModel"/>
        /// </summary>
        /// <param name="viewModel">view model that has info on the message to show to the user</param>
        /// <param name="iconBitmap">Bitmap to use for the app's icon/graphic. Not currently used.</param>
        public MessageNotificationWindow(MessageNotificationWindowViewModel viewModel, IBitmap iconBitmap)
        {
            this.InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
            DataContext = viewModel;

            /*var imageControl = this.FindControl<Image>("AppIcon");
             * if (imageControl != null)
             * {
             *  imageControl.Source = iconBitmap;
             * }*/
        }
 /// <summary>
 /// Construct the notification window for the message notification with the provided
 /// <seealso cref="MessageNotificationWindowViewModel"/>
 /// </summary>
 /// <param name="viewModel">view model that has info on the message to show to the user</param>
 public MessageNotificationWindow(MessageNotificationWindowViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }
 /// <summary>
 /// Construct the notification window for the message notification with the default
 /// <seealso cref="MessageNotificationWindowViewModel"/>.
 /// </summary>
 public MessageNotificationWindow()
 {
     InitializeComponent();
     DataContext = new MessageNotificationWindowViewModel();
 }