I need to create a content dialog at the center of the screen in windows phone 8.1. (by center I mean horizontal and vertical center) By default it is created at the top of the screen.
Can I do this....?
I need to create a content dialog at the center of the screen in windows phone 8.1. (by center I mean horizontal and vertical center) By default it is created at the top of the screen.
Can I do this....?
Won't a popup control work? From the MSDN site: "You position the Popup by setting the HorizontalOffset and VerticalOffset properties. The Popup is offset relative to its immediate parent container. A Popup is not modal, so input to the screen behind it is not blocked."
set
ContentDialog.VerticalAlignment = VerticalAlignment.Center;
ContentDialog.HorizontalAlignment = HorizontalAlignment.Center;
or by XAML
<ContentDialog .... VerticalAlignment="Center" and HorizontalAlignment="Center">
</ContentDialog>