RadWindow Fullscreen NoMove NoResize

5 posts, 1 answers
  1. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 04 Oct 2012 Link to this post

    Hello,

    I have a problem with the RadWindow, If I set following attributes to it:
    <telerik:RadWindow
               telerik:StyleManager.Theme="Metro"
                       ...
                       Width="400" Height="300" Header="SubWindow"
               CanClose="True"
               CanMove="False"
               ResizeMode="NoResize"
               WindowStartupLocation="CenterScreen"
               WindowState="Maximized"
    >

    After running the application and open the window with these parameters, it starts in fullscreen with a close button only.
    That's what i want, but if I hold the left mouse button on the titlebar and start to move the window, it gets resized/minimized and it moves to the center of the cursor, then its not movable anymore. So if someone drags the window near on the margin of the silverlight application, it will only display the half of the window inside and it can't be closed, if the close button is behind the margin. So the whole application is not usable on a modal window anymore.

    To reproduce this problem, i have created a small solution which contains the problem and the raw structure of my application. i hope there is a solution, because its a high priority problem.

    Best regards
    Andreas Schwarz

    Attachments:
    https://docs.google.com/open?id=0B2Gh-Fj36cJKVnMwVXFRRjFuYU0
    https://www.dropbox.com/s/kcc2dfzr5ryi48i/WindowNoMoveNoResizeNoFullscreen.zip
  2. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 09 Oct 2012 Link to this post

    Hello Andreas,

    As we are developing the RadWindow for Silverlight we have tried to make it behave as close as possible to WPF Window and for now restricting it to Maximimzed state with no resizing is not supported. So we have logged it in our Public Issue Tracking System as a feature request. Here you can track the progress of implementing it and vote - the more votes it gets the more important it becomes to us.

    Kind regards,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 06 Nov 2012 Link to this post

    For now i have implemented a little workaround, its not a clean solution and it will not avoid this problem, but its possible to close this window in every situation, that means also if the close button is out of browser screen:

    public class CustomRadWindow : RadWindow
        {
            ...
     
            protected override void OnKeyDown(KeyEventArgs e)
            {
                if (e.Key == Key.Escape)
                {
                    e.Handled = true;
                    DialogResult = false;
                    Close();
                }
                base.OnKeyDown(e);
            }
        }
  5. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 03 Dec 2012 Link to this post

    Hi Andreas,

    Another workaround for this issue is to set  CaptionHeight="0" to the RadWindow.

    Regards,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 04 Dec 2012 Link to this post

    Seems to work really fine, thanks!
Back to Top
DevCraft banner