maximized close case dialog
This commit is contained in:
@@ -88,7 +88,6 @@
|
||||
</UserControl.Resources>
|
||||
|
||||
<ScrollViewer x:Name="DialogContentScrollViewer"
|
||||
Height="570"
|
||||
Padding="0 0 5 0"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
Focusable="True">
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user