From 0f6aa66b21104652ed48aad283435375b787c540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sun, 28 Dec 2025 07:27:27 +0100 Subject: [PATCH] Small warning. --- Wino.Mail.WinUI/BasePage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wino.Mail.WinUI/BasePage.cs b/Wino.Mail.WinUI/BasePage.cs index d2a7bfe7..02229c36 100644 --- a/Wino.Mail.WinUI/BasePage.cs +++ b/Wino.Mail.WinUI/BasePage.cs @@ -41,7 +41,7 @@ public partial class BasePage : Page, IRecipient public abstract class BasePage : BasePage where T : CoreBaseViewModel { - public T ViewModel { get; } = WinoApplication.Current.Services.GetService(); + public T ViewModel { get; } = WinoApplication.Current.Services.GetService() ?? throw new ArgumentException($"Can't resolve '{typeof(T)}' as view model."); protected BasePage() {