Fix build error in WinUI 3 sample app

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-05 20:55:54 +01:00
1 親 c8d597018a
コミット cb9c0d9b7b
2ファイル変更
+9 -4

検索条件に一致するファイルはありません

+9
ファイルの表示
@@ -1,4 +1,6 @@
using System;
using ComputeSharp.SwapChain.Core.Services;
using ComputeSharp.SwapChain.Core.ViewModels;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Input;
@@ -15,8 +17,15 @@ public sealed partial class MainWindow : Window
this.ExtendsContentIntoTitleBar = true;
SetTitleBar(TitleBarRectangle);
Root.DataContext = new MainViewModel(new DebugAnalyticsService());
}
/// <summary>
/// Gets the <see cref="MainViewModel"/> instance for the current view.
/// </summary>
public MainViewModel ViewModel => (MainViewModel)Root.DataContext;
// Opens the shader selection panel
private void OpenShaderSelectionPanelButton_Click(object sender, RoutedEventArgs e)
{