diff --git a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj index ae682324..fe09e41c 100644 --- a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj +++ b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj @@ -7,7 +7,7 @@ - + diff --git a/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs b/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs index 1f0291b3..1381476b 100644 --- a/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs @@ -20,7 +20,7 @@ namespace ComputeSharp.SwapChain.Core.ViewModels; /// /// The viewmodel for for a view that allows users to select shaders and customize settings. /// -public sealed class MainViewModel : ObservableObject +public sealed partial class MainViewModel : ObservableObject { /// /// The instance currently in use. @@ -40,9 +40,6 @@ public sealed class MainViewModel : ObservableObject this.selectedResolutionScale = 100; this.selectedComputeShader = ComputeShaderOptions[0]; this.selectedComputeShader.IsSelected = true; - - SetResolutionScaleCommand = new RelayCommand(SetResolutionScale); - ToggleRenderingPausedCommand = new RelayCommand(ToggleRenderingPaused); } /// @@ -101,19 +98,6 @@ public sealed class MainViewModel : ObservableObject } } - /// - /// Gets the command that sets . - /// - public IRelayCommand SetResolutionScaleCommand { get; } - - /// - /// Sets . - /// - private void SetResolutionScale(int resolutionScale) - { - SelectedResolutionScale = resolutionScale; - } - /// /// Gets the collection of available compute shader. /// @@ -171,13 +155,18 @@ public sealed class MainViewModel : ObservableObject } /// - /// Gets the command that toggles . + /// Sets . /// - public IRelayCommand ToggleRenderingPausedCommand { get; } + [RelayCommand] + private void SetResolutionScale(int resolutionScale) + { + SelectedResolutionScale = resolutionScale; + } /// /// Toggles . /// + [RelayCommand] private void ToggleRenderingPaused() { IsRenderingPaused = !IsRenderingPaused; diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj index a4c2592c..1f8aa933 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj +++ b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj @@ -205,7 +205,7 @@ - 8.0.0-preview1 + 8.0.0-preview4 4.5.1 @@ -217,7 +217,7 @@ 6.0.0 - 6.2.13 + 6.2.14 7.1.2 diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj index ff2c1bff..a9f09581 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj +++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj @@ -27,8 +27,8 @@ - - + + diff --git a/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj b/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj index cf837b3a..1cfdc85a 100644 --- a/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj +++ b/src/ComputeSharp.Uwp/ComputeSharp.Uwp.csproj @@ -31,7 +31,7 @@ - + diff --git a/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj b/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj index 5b141cc4..3fb23ab3 100644 --- a/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj +++ b/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index ce8db878..2db2d034 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -16,7 +16,7 @@ - + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 96486587..a6b8f857 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index cc0194a8..665da7e6 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -8,7 +8,7 @@ - +