From 3a65a574d69548cd1ccfc9583a6a007f34afd691 Mon Sep 17 00:00:00 2001 From: enaboapps <60785457+enaboapps@users.noreply.github.com> Date: Tue, 28 Jul 2026 08:42:27 +0100 Subject: [PATCH] Fix switch profile editing UX --- .../SwitchControlProfileWindow.xaml | 11 +- .../SwitchControlProfileWindow.xaml.cs | 174 ++++++++++- src/SwitchifyPc.App/SwitchifyPc.App.csproj | 1 + .../SwitchControlProfileWindowTests.cs | 281 +++++++++++++++++- 4 files changed, 440 insertions(+), 27 deletions(-) diff --git a/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml b/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml index 0c9ea86..d46fd00 100644 --- a/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml +++ b/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml @@ -4,8 +4,10 @@ xmlns:shell="clr-namespace:System.Windows.Shell;assembly=PresentationFramework" xmlns:chrome="clr-namespace:SwitchifyPc.App.Chrome" Title="PC Switch Control profiles" - Width="980" - Height="720" + MinWidth="760" + MinHeight="560" + Width="900" + Height="690" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" Icon="Assets/icon.ico" @@ -501,11 +503,6 @@ MinWidth="84" Style="{StaticResource PrimaryButton}" Click="Save_Click" /> -