You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public WindowIcon CurrentTrayIcon
{
get => _currentTrayIcon;
private set => SetAndRaise(CurrentTrayIconProperty, ref _currentTrayIcon, value);
}
private WindowIcon _currentTrayIcon;`
In the App constructor i load the icon.
In my App.xaml I bind to this Property. <TrayIcon Icon="{Binding Source={x:Static Application.Current},Path=CurrentTrayIcon,Mode=OneWay}" ToolTipText="Avalonia Tray Icon ToolTip">
When I run my Program I got the following Message:
I would expect that the program does not crash.
I also tried to use an IBitmap, but then the TrayIcon is only black...
OS: Windows 10 64 Bit
Avalonia Version 0.10.8
The text was updated successfully, but these errors were encountered:
Hello,
I creaded an DirectProperty in my App.axaml.cs of Type "WindowIcon".
This looks like:
`public static readonly DirectProperty<App, WindowIcon> CurrentTrayIconProperty =
AvaloniaProperty.RegisterDirect<App, WindowIcon>(nameof(CurrentStatus), o => o.CurrentTrayIcon, (o, v) => o.CurrentTrayIcon = v);
In the App constructor i load the icon.
In my App.xaml I bind to this Property.
<TrayIcon Icon="{Binding Source={x:Static Application.Current},Path=CurrentTrayIcon,Mode=OneWay}" ToolTipText="Avalonia Tray Icon ToolTip">
When I run my Program I got the following Message:
I would expect that the program does not crash.
I also tried to use an IBitmap, but then the TrayIcon is only black...
The text was updated successfully, but these errors were encountered: