Is there anyway to center a RadWindow horizontally, but set the distance to the top of the parent manually?
Like for a grid it would be: HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,50,0,0"
How can I do this with a RadWindow's startup location?
Thanks,
Justin
3 Answers, 1 is accepted
0
Konstantina
Telerik team
answered on 24 Dec 2012, 02:54 PM
Hi Justin,
You could use the Left and Top properties of the RadWindow to position it to fit your requirements.
Using the Top and Left properties, there is no way to center the window horizontally. (The Silverlight app is the size of the browser - so its not a fixed size)
I need to center it horizontally, but fix the distance from the top.
Because the size of the browser is not fixed, you will need to calculate the value of the Top property, which needs to be set, every time the size of the browser is changed. Please find attached a sample application which illustrates this.