jtsoftware
jtsoftware

Reputation: 543

Dialog Popup doesn't rearrange when device rotated in windows store apps

I use dialog popups in my Windows Store app using a Popup object with the child set to a Page. However, the dialog doesn't resize when the device is rotated like other Page's do automatically. Likewise, if I close the dialog (keeping the Page object), rotate the device, and display the dialog again (new Popup, old Page), the dialog uses the wrong size.

Upvotes: 0

Views: 176

Answers (1)

Filip Skakun
Filip Skakun

Reputation: 31724

That's the nature of the Popup unfortunately. You should make sure your Popup is a child of some Panel (e.g. a page's LayoutGrid Grid) and handle the SizeChanged event of its parent to update the Popup. If you are looking for a nicer solution I'd look into Callisto's Flyout control.

Upvotes: 1

Related Questions