maximized close case dialog

This commit is contained in:
Meik
2026-02-09 20:18:31 +01:00
parent 9e5a7f7946
commit bf9d37d7af
3 changed files with 78 additions and 15 deletions

View File

@@ -88,7 +88,6 @@
</UserControl.Resources>
<ScrollViewer x:Name="DialogContentScrollViewer"
Height="570"
Padding="0 0 5 0"
VerticalScrollBarVisibility="Auto"
Focusable="True">

View File

@@ -2736,6 +2736,23 @@ namespace FasdDesktopUi.Basics.UserControls
}
}
public void SetDialogContentMaxHeight(double maxHeight)
{
try
{
if (DialogContentScrollViewer == null)
return;
// Keep dialog usable on very small screens, but allow larger monitors to use space.
var clamped = Math.Max(220, Math.Min(900, maxHeight));
DialogContentScrollViewer.MaxHeight = clamped;
}
catch (Exception E)
{
LogException(E);
}
}
private void DropDownClosed(object sender, EventArgs e)
{
if (!(sender is FrameworkElement fe)) return;