Please add an option to center the Xamarin Popup on the page, both horizontally and vertically. The popup should not move when pickers (and other similar controls) are opened/closed.
I have updated your Telerik points for bringing this to our attention.
I have also changed the status of this item to "Declined" as RadPopup currently provides a way to be positioned centrally - attach it to the Page element and send its Placement property to Center.
Let me know in case any additional questions arise.
Regards,
Yana
Progress Telerik
Marc
Posted on:08 Feb 2019 20:12
Thanks for the sample code Yana! It works perfectly in Android.
I was able to reproduce the iOS picker issue in your sample project by changing MainPage.xaml as follows. Note that after you choose a County, the popup goes higher on the page.
The proper way to center the popup when it is declared in XAML is to attach it to the Page element and set its Placement property to "Center" like this:
You don't need to set VerticalOffset in this situation. I have attached the updated project, could you download it and test it? Please let me know the result on your side.
In addition, if you could isolate the issue with the popup misplacement when a picker is shown on iOS in a sample app, please send it to us, so we could further investigate it.
I am looking forward to your reply.
Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
Below are the results of my testing in your project. The iOS popup appears perfectly centered, but the Android popup appears to be centered between the parent control (the Test label) and the bottom of the screen.
Here's the hierarchy of my popup control... I don't really want to associate it with another control... just the page itself, and I will open/close the popup using the IsOpen property. Is that not possible?
When the popup is defined in XAML it should always be attached to an element (using RadPopup.Popup attached property) and this element is considered as its PlacementTarget (even if you set it explicitly to the Popup control). I guess that's the reason the popup is displayed at the top of the page on your side. Still, to be sure I'd need to check the complete XAML you have on the page.
I have also tried to reproduce the issue with setting VerticalOffset and opening a Picker control on iOS, however, without much success. I have attached my test app, could you download it and give it a try? Can you modify it, so that the issue to be reproduced and send it back to me?
I am looking forward to your reply.
Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
In iOS, the popup is at the top of the page, and too far to the left. When we used VerticalOffset to force the popup to the center vertically, opening a picker caused the popup to shift up towards the top of the page.
In Android, the popup is centered horizontally, but at the top of the page.
Thanks,
Marc
ADMIN
Yana
Posted on:06 Feb 2019 09:43
Hello guys,
In general, when popup is attached to the page and its Placement is set to "Center", its position is centered horizontally and vertically.
Marc, since you've mentioned the popup moves in certain situations, could you elaborate more on this scenario? I've tested placing Picker and RadAutoCompleteView inside the popup and didn't manage to reproduce the described behavior.
I am looking forward to your reply.
Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items