mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:08:33 +08:00
21 lines
639 B
C#
21 lines
639 B
C#
using BetterLyrics.WinUI3.ViewModels;
|
|
using CommunityToolkit.Mvvm.DependencyInjection;
|
|
using Microsoft.UI.Xaml.Controls;
|
|
|
|
// To learn more about WinUI, the WinUI project structure,
|
|
// and more about our project templates, see: http://aka.ms/winui-project-info.
|
|
|
|
namespace BetterLyrics.WinUI3.Controls;
|
|
|
|
public sealed partial class StatsDashboardControl : UserControl
|
|
{
|
|
public StatsDashboardControlViewModel ViewModel => (StatsDashboardControlViewModel)DataContext;
|
|
|
|
public StatsDashboardControl()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = Ioc.Default.GetRequiredService<StatsDashboardControlViewModel>();
|
|
}
|
|
|
|
}
|