This is a migrated thread and some comments may be shown as answers.

RadWindow Fullscreen NoMove NoResize

4 Answers 311 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 04 Oct 2012, 07:18 AM
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

4 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 09 Oct 2012, 10:27 AM
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.

0
Andreas
Top achievements
Rank 1
answered on 06 Nov 2012, 10:54 AM
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);
        }
    }
0
Accepted
Boyan
Telerik team
answered on 03 Dec 2012, 09:37 AM
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.

0
Andreas
Top achievements
Rank 1
answered on 04 Dec 2012, 10:16 AM
Seems to work really fine, thanks!
Tags
Window
Asked by
Andreas
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Andreas
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or