2023-01-20 23:08:33 +08:00
|
|
|
<Application
|
2025-09-28 16:29:02 +08:00
|
|
|
Name="Semi Avalonia Demo"
|
2023-08-30 00:13:26 +08:00
|
|
|
x:Class="Semi.Avalonia.Demo.App"
|
2023-01-20 23:08:33 +08:00
|
|
|
xmlns="https://github.com/avaloniaui"
|
2024-02-21 16:32:48 +08:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2025-01-13 12:37:55 +08:00
|
|
|
xmlns:semi="https://irihi.tech/semi"
|
2025-09-25 19:16:12 +08:00
|
|
|
xmlns:vm="clr-namespace:Semi.Avalonia.Demo.ViewModels"
|
|
|
|
|
x:DataType="vm:ApplicationViewModel">
|
2023-01-20 23:08:33 +08:00
|
|
|
<Application.Styles>
|
2024-12-30 12:21:28 +08:00
|
|
|
<semi:SemiTheme Locale="zh-CN" />
|
2024-12-31 13:20:23 +08:00
|
|
|
<semi:SemiPopupAnimations />
|
2025-04-23 21:23:19 +08:00
|
|
|
<semi:ColorPickerSemiTheme />
|
|
|
|
|
<semi:DataGridSemiTheme />
|
|
|
|
|
<semi:TreeDataGridSemiTheme />
|
2023-01-20 23:08:33 +08:00
|
|
|
</Application.Styles>
|
2024-12-31 13:20:23 +08:00
|
|
|
<Application.Resources>
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
2025-04-23 21:30:04 +08:00
|
|
|
<ResourceInclude Source="Themes/_index.axaml" />
|
2024-12-31 13:20:23 +08:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
</Application.Resources>
|
2025-09-28 18:02:09 +08:00
|
|
|
<NativeMenu.Menu>
|
|
|
|
|
<NativeMenu>
|
|
|
|
|
<NativeMenuItem
|
|
|
|
|
Header="About Us"
|
|
|
|
|
Command="{Binding JumpToCommand}"
|
|
|
|
|
CommandParameter="{Binding $self.Header}" />
|
|
|
|
|
</NativeMenu>
|
|
|
|
|
</NativeMenu.Menu>
|
2025-01-13 12:37:55 +08:00
|
|
|
<TrayIcon.Icons>
|
|
|
|
|
<TrayIcons>
|
2025-09-28 16:29:02 +08:00
|
|
|
<TrayIcon
|
|
|
|
|
Icon="{OnPlatform Default=/Assets/irihi.ico, macOS=/Assets/irihi2.ico}"
|
|
|
|
|
MacOSProperties.IsTemplateIcon="true"
|
2025-09-29 01:33:18 +08:00
|
|
|
Command="{Binding ActivateCommand}"
|
2025-09-28 16:29:02 +08:00
|
|
|
ToolTipText="Semi Avalonia Demo">
|
2025-01-13 12:37:55 +08:00
|
|
|
<TrayIcon.Menu>
|
|
|
|
|
<NativeMenu>
|
2025-09-28 18:02:09 +08:00
|
|
|
<NativeMenuItem
|
|
|
|
|
Header="About Us"
|
|
|
|
|
Command="{Binding JumpToCommand}"
|
|
|
|
|
CommandParameter="{Binding $self.Header}" />
|
|
|
|
|
<NativeMenuItem
|
|
|
|
|
Header="Exit"
|
|
|
|
|
Command="{Binding ExitCommand}" />
|
2025-01-13 12:37:55 +08:00
|
|
|
</NativeMenu>
|
|
|
|
|
</TrayIcon.Menu>
|
|
|
|
|
</TrayIcon>
|
|
|
|
|
</TrayIcons>
|
|
|
|
|
</TrayIcon.Icons>
|
2023-01-20 23:08:33 +08:00
|
|
|
</Application>
|