Port UWP sample updates to WinUI 3 project

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-21 12:58:56 +01:00
1 親 50249f3b6a
コミット d9fa15a880
3ファイル変更
+72 -56

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

+9 -2
ファイルの表示
@@ -1,10 +1,11 @@
using Microsoft.UI.Xaml;
using System;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Input;
namespace ComputeSharp.SwapChain.WinUI.Views;
/// <summary>
/// A view for <see cref="ComputeSharp.SwapChain.WinUI.ViewModels.MainViewModel"/>.
/// A view for <see cref="ViewModels.MainViewModel"/>.
/// </summary>
public sealed partial class MainWindow : Window
{
@@ -28,4 +29,10 @@ public sealed partial class MainWindow : Window
{
Root.Children.Remove(ShaderSelectionPanel);
}
// Updates the size of the shaders list panel
private void UserControl_SizeChanged(object sender, WindowSizeChangedEventArgs e)
{
ShadersListContainerPanel.Height = Math.Round(e.Size.Height * 0.35);
}
}