From e1e0f155c997a6dc2fb3bddbc1f2b520d5f185af Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 16 May 2024 11:49:29 +0200 Subject: [PATCH] Proper fullscreen fix * Actually resizes when going fullscreen --- .../Views/DataVisualizerView.axaml | 20 +++-- src/ProfHeat.AUI/Views/MainWindow.axaml | 51 ++++++------ src/ProfHeat.AUI/Views/OptimizerView.axaml | 83 +++++++++---------- 3 files changed, 80 insertions(+), 74 deletions(-) diff --git a/src/ProfHeat.AUI/Views/DataVisualizerView.axaml b/src/ProfHeat.AUI/Views/DataVisualizerView.axaml index f8fa022..624eb1a 100644 --- a/src/ProfHeat.AUI/Views/DataVisualizerView.axaml +++ b/src/ProfHeat.AUI/Views/DataVisualizerView.axaml @@ -5,12 +5,19 @@ xmlns:vm="using:ProfHeat.AUI.ViewModels" xmlns:v="using:ProfHeat.AUI.Views" xmlns:m="using:ProfHeat.Core.Models" - mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="400" Width="800" Height="400" + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="400" x:Class="ProfHeat.AUI.Views.DataVisualizerView" x:DataType="vm:DataVisualizerViewModel" xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"> - - + + + + + + + + + - + - + - diff --git a/src/ProfHeat.AUI/Views/MainWindow.axaml b/src/ProfHeat.AUI/Views/MainWindow.axaml index dccefc4..aa1a122 100644 --- a/src/ProfHeat.AUI/Views/MainWindow.axaml +++ b/src/ProfHeat.AUI/Views/MainWindow.axaml @@ -6,7 +6,7 @@ xmlns:v="using:ProfHeat.AUI.Views" xmlns:m="using:ProfHeat.Core.Models" xmlns:ui="using:FluentAvalonia.UI.Controls" - mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" Width="800" Height="450" + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="ProfHeat.AUI.Views.MainWindow" x:DataType="vm:MainWindowViewModel" WindowStartupLocation="CenterOwner" @@ -15,13 +15,14 @@ Background="Transparent" PointerPressed="DragWindow_PointerPressed" Icon="/Assets/Images/Icon.ico" - Title="ProfHeat"> + Title="ProfHeat" + Width="800" Height="450"> - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/src/ProfHeat.AUI/Views/OptimizerView.axaml b/src/ProfHeat.AUI/Views/OptimizerView.axaml index 0f1d2f2..c5d1aa8 100644 --- a/src/ProfHeat.AUI/Views/OptimizerView.axaml +++ b/src/ProfHeat.AUI/Views/OptimizerView.axaml @@ -6,12 +6,10 @@ xmlns:v="using:ProfHeat.AUI.Views" xmlns:m="using:ProfHeat.Core.Models" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - Width="800" Height="450" x:Class="ProfHeat.AUI.Views.OptimizerView" x:DataType="vm:OptimizerViewModel"> - - + - - - - - - - - - - - - + + + + + + + + + + + + + + - + + + Margin="0,30,0,10" /> + + - -