WPF NotifyIcon

--------------
CHG   Generally improved sample project - added more bindings, welcome balloon, changed layout.
CHG   Changed namespace in sample project. Preparing tutorials.

git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@101 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
Philipp Sumi
2009-05-13 09:32:55 +00:00
parent 34c589eac4
commit f349d3d339
25 changed files with 612 additions and 197 deletions

View File

@@ -1,8 +1,11 @@
using System.Windows;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Documents;
using System.Windows.Navigation;
using Hardcodet.Wpf.TaskbarNotification;
namespace Sample_Project
namespace Samples
{
/// <summary>
/// Interaction logic for Window1.xaml
@@ -16,8 +19,9 @@ namespace Sample_Project
Loaded += delegate
{
//show balloon at startup, pointing to the icon
showBalloonTip_Click(null, null);
//show balloon at startup
var balloon = new WelcomeBalloon();
tb.ShowCustomBalloon(balloon, PopupAnimation.Slide, 12000);
};
}
@@ -71,5 +75,12 @@ namespace Sample_Project
{
tb.CloseBalloon();
}
private void OnNavigationRequest(object sender, RequestNavigateEventArgs e)
{
Process.Start(e.Uri.ToString());
e.Handled = true;
}
}
}