Silverlight Popup Positioning

by zebsadiq 28. January 2011 14:21

Recently I had to convert a few child windows into popup windows. Doing this was pretty easy. I simply changed the child windows into user controls, then added them as child controls of popups at runtime. One of the behavioural difference between the child window and pop up box is that by default, a child window opens in the middle of the Silverlight application whereas the Popup appears in the top left corner. After a bit of google-ing, I did not find an out of the box way to make the pop-ups sit in the centre of my screen. Therefore I formulated a way of doing this via code and some basic maths. More...

Tags: , ,

C# | Silverlight

Calendar

<<  March 2024  >>
MoTuWeThFrSaSu
26272829123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar