Implement NET8 server but without packaging capability.
This commit is contained in:
44
Wino.Server.NET8/Styles/TrayIconResources.xaml
Normal file
44
Wino.Server.NET8/Styles/TrayIconResources.xaml
Normal file
@@ -0,0 +1,44 @@
|
||||
<ResourceDictionary
|
||||
x:Class="Wino.Server.Styles.TrayIconResources"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:domain="using:Wino.Core.Domain"
|
||||
xmlns:local="using:Wino.Server"
|
||||
xmlns:tb="using:H.NotifyIcon">
|
||||
|
||||
<!-- TODO: Localize by Translator. -->
|
||||
<XamlUICommand
|
||||
x:Key="LaunchCommand"
|
||||
Label="Launch"
|
||||
Description="Activates Wino Mail window.">
|
||||
<XamlUICommand.IconSource>
|
||||
<SymbolIconSource Symbol="Accept" />
|
||||
</XamlUICommand.IconSource>
|
||||
</XamlUICommand>
|
||||
|
||||
<XamlUICommand
|
||||
x:Key="TerminateCommand"
|
||||
Label="Quit"
|
||||
Description="Close Wino Mail completely.">
|
||||
<XamlUICommand.IconSource>
|
||||
<SymbolIconSource Symbol="ClosePane" />
|
||||
</XamlUICommand.IconSource>
|
||||
</XamlUICommand>
|
||||
|
||||
<tb:TaskbarIcon
|
||||
x:Key="TrayIcon"
|
||||
Visibility="Visible"
|
||||
ToolTipText="Wino Mail"
|
||||
ContextMenuMode="PopupMenu"
|
||||
LeftClickCommand="{StaticResource LaunchCommand}"
|
||||
NoLeftClickDelay="True"
|
||||
IconSource="\Assets\Wino_Icon.ico">
|
||||
<tb:TaskbarIcon.ContextFlyout>
|
||||
<MenuFlyout>
|
||||
<MenuFlyoutItem Command="{StaticResource LaunchCommand}" />
|
||||
<MenuFlyoutItem Command="{StaticResource TerminateCommand}" />
|
||||
</MenuFlyout>
|
||||
</tb:TaskbarIcon.ContextFlyout>
|
||||
</tb:TaskbarIcon>
|
||||
|
||||
</ResourceDictionary>
|
||||
12
Wino.Server.NET8/Styles/TrayIconResources.xaml.cs
Normal file
12
Wino.Server.NET8/Styles/TrayIconResources.xaml.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Microsoft.UI.Xaml;
|
||||
|
||||
namespace Wino.Server.Styles
|
||||
{
|
||||
partial class TrayIconResources : ResourceDictionary
|
||||
{
|
||||
public TrayIconResources()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user