mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-16 17:28:43 -05:00
ADD Sample for windowless application.
NTFY-25 git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@203 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
21
Source/Windowless Sample/App.xaml
Normal file
21
Source/Windowless Sample/App.xaml
Normal file
@@ -0,0 +1,21 @@
|
||||
<Application x:Class="Windowless_Sample.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
ShutdownMode="OnExplicitShutdown">
|
||||
<Application.Resources>
|
||||
|
||||
<!--
|
||||
Note that this application does not have a StartupUri declared, so no Window is automatically loaded.
|
||||
Also, the ShutdownMode was set to explicit, so we have to close the application programmatically
|
||||
-->
|
||||
|
||||
|
||||
<!-- merge NotifyIcon and related stuff into the application -->
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="NotifyIconResources.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
Reference in New Issue
Block a user