Unplanned
Last Updated: 21 Dec 2017 16:46 by ADMIN
ADMIN
Martin Ivanov
Created on: 21 Dec 2017 16:46
Category: Window
Type: Bug Report
3
Window: The titlebar is clipped when minimized and its MinWidth is set to a value bigger than the minimized width
To resolve this remove the MinWidth setting. You can set it back when the window is restored.

private double myMinWidth;
private void Window_WindowStateChanged(object sender, System.EventArgs e)
{
            var window = (RadWindow)sender;
            if (window.WindowState == WindowState.Minimized)
            {
                this.myMinWidth = window.MinWidth;
                window.MinWidth = 0;
            }
            else
            {
                window.MinWidth = this.myMinWidth;
            }
}
0 comments