I set the Top & Left properties on a RadWindow to a fixed number, when I have the IsRestricted property set to true. After each click the RadWindow moves to a different location on the screen.
Here is my Xaml:
Here is my code:
Please note that I open the browser (and thus the silverlight application) full screen, so the Top/Left positioning of 150x150 is not near the edge of the screen.
I upload a copy of the project here (PopupProblem)
https://skydrive.live.com/?cid=80ce78240aa8df49&id=80CE78240AA8DF49%21888
Here is my Xaml:
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"AliceBlue"
>
<
telerik:RadWindow
x:Name
=
"MyRadPopup"
Header
=
"Hi Mom!"
WindowStartupLocation
=
"Manual"
Top
=
"150"
Left
=
"150"
IsRestricted
=
"True"
>
<
StackPanel
>
<
TextBlock
Text
=
"Ouch!"
/>
</
StackPanel
>
</
telerik:RadWindow
>
<
Button
Content
=
"PopMe"
Height
=
"23"
Width
=
"75"
x:Name
=
"MyButton"
Click
=
"MyButton_Click"
/>
</
Grid
>
Here is my code:
public
partial
class
MainPage : UserControl
{
public
MainPage()
{
InitializeComponent();
}
private
void
MyButton_Click(
object
sender, RoutedEventArgs e)
{
MyRadPopup.ShowDialog();
}
}
Please note that I open the browser (and thus the silverlight application) full screen, so the Top/Left positioning of 150x150 is not near the edge of the screen.
I upload a copy of the project here (PopupProblem)
https://skydrive.live.com/?cid=80ce78240aa8df49&id=80CE78240AA8DF49%21888