mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
18 lines
473 B
C#
18 lines
473 B
C#
using BetterLyrics.WinUI3.ViewModels;
|
|
using CommunityToolkit.Mvvm.DependencyInjection;
|
|
using Microsoft.UI.Xaml.Controls;
|
|
|
|
namespace BetterLyrics.WinUI3.Controls
|
|
{
|
|
public sealed partial class SystemTray : UserControl
|
|
{
|
|
public SystemTrayViewModel ViewModel => (SystemTrayViewModel)DataContext;
|
|
|
|
public SystemTray()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = Ioc.Default.GetService<SystemTrayViewModel>();
|
|
}
|
|
}
|
|
}
|