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

Set multiple behaviors for Rad Window

3 Answers 257 Views
Window
This is a migrated thread and some comments may be shown as answers.
Acadia
Top achievements
Rank 1
Iron
Acadia asked on 22 Dec 2008, 04:23 PM
How do you programatically set multiple behaviors for a rad window.  I can get it to accept a sibngle behavior such as close or move but how do you tell it to have both Close and Move.

Thanks

3 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 22 Dec 2008, 05:27 PM
Below is a sample from one of my apps. It sets the behaviours for all of the windows invoked by this page. You can do this on a window-by-window basis by setting the Window property rather than that of the WindowManager.
WindowManager.Behaviors = WindowBehaviors.Close | WindowBehaviors.Move | WindowBehaviors.Resize | WindowBehaviors.Maximize; 

You can do this 'cos the WindowsBehaviours enum is defined using the [Flags] attribute. See this MSDN article for more details about enums and the [Flags] attribute.

Hope this helps.

--
Stuart
0
Ashwin
Top achievements
Rank 1
answered on 26 Apr 2013, 09:16 AM
Hello There, 

When I set behaviors as "Move" for Rad WIndow, it moves the window, but we can move it to any location even our screen ends still you can move it. How to restrict user for not moving the window out of parent screen layout ?
0
Shinu
Top achievements
Rank 2
answered on 26 Apr 2013, 09:42 AM
Hi,

You cannot prevent the user from dragging an object outside of the original viewport area. You can set the KeepInScreenBounds property of the RadWindow to true so that window will stay in the visible viewport of the browser window.

Thanks,
Shinu
Tags
Window
Asked by
Acadia
Top achievements
Rank 1
Iron
Answers by
Stuart Hemming
Top achievements
Rank 2
Ashwin
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or