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:
parent
14fae4b246
commit
358539bfd5
1 changed files with 4 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue