I have created a card window, I am using it for the dialogue box purpose. I just want that when a user clicks the button card window appear just same like the dialogue box.
Now everything is done but I just to position my card window on the center of the screen. So please share the formula/suggestion that how should I keep to maintain the position of my card window to the middle of the screen.
I have given 400 width size to that card window which is behaving like a dialogue box.