misc: chore: [ci skip] small Avalonia project restructure

Moved the Views that existed in the Controls namespace into the Ryujinx.Ava.UI.Views.Misc namespace
Moved UpdateWaitWindow to Ryujinx.Ava.UI.Windows
This commit is contained in:
Evan Husted
2025-03-02 21:41:46 -06:00
parent da3f4e1d3a
commit ffdc419417
14 changed files with 28 additions and 17 deletions

View File

@@ -9,9 +9,15 @@ namespace Ryujinx.Ava.UI.Controls
{
public TViewModel ViewModel
{
get => (TViewModel)DataContext ?? throw new InvalidOperationException(
$"Underlying DataContext is not of type {typeof(TViewModel).AsPrettyString()}; " +
$"Actual type is {DataContext?.GetType().AsPrettyString()}");
get
{
if (DataContext is not TViewModel viewModel)
throw new InvalidOperationException(
$"Underlying DataContext is not of type {typeof(TViewModel).AsPrettyString()}; " +
$"Actual type is {DataContext?.GetType().AsPrettyString()}");
return viewModel;
}
set => DataContext = value;
}
}