diff --git a/WPFGrowlNotification/App.xaml b/WPFGrowlNotification/App.xaml deleted file mode 100644 index 8748a14..0000000 --- a/WPFGrowlNotification/App.xaml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - diff --git a/WPFGrowlNotification/App.xaml.cs b/WPFGrowlNotification/App.xaml.cs deleted file mode 100644 index 0ad681b..0000000 --- a/WPFGrowlNotification/App.xaml.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Linq; -using System.Windows; - -namespace WPFGrowlNotification -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/WPFGrowlNotification/GrowlNotifiactions.xaml b/WPFGrowlNotification/GrowlNotifiactions.xaml index 4913526..778c079 100644 --- a/WPFGrowlNotification/GrowlNotifiactions.xaml +++ b/WPFGrowlNotification/GrowlNotifiactions.xaml @@ -3,32 +3,34 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Model="clr-namespace:WPFGrowlNotification" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" - Title="GrowlNotifiactions" Height="530" Width="300" ShowActivated="False" AllowsTransparency="True" WindowStyle="None" ShowInTaskbar="False" Background="Transparent" Topmost="True" UseLayoutRounding="True"> + Title="GrowlNotifiactions" Height="265" Width="300" ShowActivated="False" AllowsTransparency="True" WindowStyle="None" ShowInTaskbar="False" Background="Transparent" Topmost="True" UseLayoutRounding="True"> + + + + - - - - - + + + - - - - - - - - - diff --git a/WPFGrowlNotification/MainWindow.xaml.cs b/WPFGrowlNotification/MainWindow.xaml.cs deleted file mode 100644 index 3a685a0..0000000 --- a/WPFGrowlNotification/MainWindow.xaml.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System.Windows; - -namespace WPFGrowlNotification -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow - { - private const double topOffset = 20; - private const double leftOffset = 380; - readonly GrowlNotifiactions growlNotifications = new GrowlNotifiactions(); - - public MainWindow() - { - InitializeComponent(); - growlNotifications.Top = SystemParameters.WorkArea.Top + topOffset; - growlNotifications.Left = SystemParameters.WorkArea.Left + SystemParameters.WorkArea.Width - leftOffset; - } - - private void ButtonClick1(object sender, RoutedEventArgs e) - { - growlNotifications.AddNotification(new Notification { Title = "Mesage #1", ImageUrl = "pack://application:,,,/Resources/notification-icon.png", Message = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }); - } - - private void Button_Click_1(object sender, RoutedEventArgs e) - { - growlNotifications.AddNotification(new Notification { Title = "Mesage #2", ImageUrl = "pack://application:,,,/Resources/microsoft-windows-8-logo.png", Message = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }); - } - - private void ButtonClick2(object sender, RoutedEventArgs e) - { - growlNotifications.AddNotification(new Notification { Title = "Mesage #3", ImageUrl = "pack://application:,,,/Resources/facebook-button.png", Message = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }); - } - - private void ButtonClick3(object sender, RoutedEventArgs e) - { - growlNotifications.AddNotification(new Notification { Title = "Mesage #4", ImageUrl = "pack://application:,,,/Resources/Radiation_warning_symbol.png", Message = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }); - } - - protected override void OnClosed(System.EventArgs e) - { - growlNotifications.Close(); - base.OnClosed(e); - } - - private void WindowLoaded1(object sender, RoutedEventArgs e) - { - //this will make minimize restore of notifications too - //growlNotifications.Owner = GetWindow(this); - } - } -} diff --git a/WPFGrowlNotification/Notification.cs b/WPFGrowlNotification/Notification.cs index 380eeb7..fec9740 100644 --- a/WPFGrowlNotification/Notification.cs +++ b/WPFGrowlNotification/Notification.cs @@ -18,29 +18,29 @@ public string Message } } - private int id; - public int Id + private string borderColor; + public string BorderColor { - get { return id; } + get { return borderColor; } set { - if (id == value) return; - id = value; - OnPropertyChanged("Id"); + if (borderColor == value) return; + borderColor = value; + OnPropertyChanged("BorderColor"); } } - private string imageUrl; - public string ImageUrl + private int id; + public int Id { - get { return imageUrl; } + get { return id; } set { - if (imageUrl == value) return; - imageUrl = value; - OnPropertyChanged("ImageUrl"); + if (id == value) return; + id = value; + OnPropertyChanged("Id"); } } diff --git a/WPFGrowlNotification/Resources/ButtonStyle.xaml b/WPFGrowlNotification/Resources/ButtonStyle.xaml index 88ba83d..0ad0344 100644 --- a/WPFGrowlNotification/Resources/ButtonStyle.xaml +++ b/WPFGrowlNotification/Resources/ButtonStyle.xaml @@ -30,15 +30,9 @@ - - - - - - - - - + + +