Updated App.axaml

Added Models to XML Namespace.
Set DataType to be AppViewModel
Changed from static tooltip and icon, to using Bindings.
This commit is contained in:
Mario Steele 2025-08-01 22:08:32 -05:00
parent 14fae4b246
commit 358539bfd5

View file

@ -1,7 +1,9 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sukiUi="clr-namespace:SukiUI;assembly=SukiUI"
xmlns:vm="clr-namespace:FreeTubeSyncer.Models"
x:Class="FreeTubeSyncer.App"
x:DataType="vm:AppViewModel"
RequestedThemeVariant="Dark">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
@ -11,8 +13,8 @@
<TrayIcon.Icons>
<TrayIcons>
<TrayIcon Icon="/Assets/freetube.png"
ToolTipText="FreeTube Syncer"
<TrayIcon Icon="{Binding AppIcon}"
ToolTipText="{Binding HintTooltip, Mode=TwoWay}"
Clicked="TrayIcon_OnClicked">
<TrayIcon.Menu>
<NativeMenu>