I've been writing a Windows Phone 7.5 app using the latest trial build of the RadControls for WP7. I will be purchasing the controls soon, so as to submit to Microsoft for certification.
However, I am having a problem with the RadContextMenu. I have a RadContextMenu attached to a RadDataBoundListBox on my page. All of the pages in my app have an application bar with opacity set to 0.95. The problem occurs when the RadContextMenu is show towards the bottom of the screen, in that the RadContextMenu and menu items are shown behind the application bar, and apart from not looking good, also means that I cannot click on the context menu items that are situated behind.
I do not really want to change the opacity to 1, please can you investigate, let me know if you can reproduce, if so, I hope you can get a fix out soon so that I can purchase the controls prior to my app submission to Microsoft.
Many Thanks,
Glenn
8 Answers, 1 is accepted
Thank you for writing.
I am afraid that there is nothing we can do on our side. Since RadContextMenu is built on top of silverlight, it will always be displayed below the app bar no matter what we do since the app bar is a native component and we have very little control over it.
For the moment please consider an alternative design for your application. We will consider improving RadContextMenu so that it is aware of the app bar opacity.
Thank you for understanding.
Victor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
As I still experience this bug as of 2014.1.*, I'd like to suggest a possible solution of this problem to dev team which is pretty simple. How can I do this to not disclose part of ContextMenu class here?
We highly appreciate customer feedback. As a customer you can open support ticket from your account where we can discuss possible solutions to this scenario.
Regards,
Tsvyatko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
It shouldn't be hard to fix this by detecting the current state of AppBar on current page and if it's (semi)transparent, then computing the available space accordingly.
Thank you for your suggestion. We will into this and work for improvement in RadContextMenu behavior in our next official release for WP8.
Regards,
Tsvyatko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
// when computing context menu position
UIElement tappedElement = ...;
Page page = FindPage(page);
double h = page.ActualHeight;
ApplicationBar appbar = FindAppBar(page);
if (IsAppBarTransparent(appbar)) {
h--= 48; // make the page height smaller so the context menu does not appear at the bottom behind the AppBar
}
// compute the Context menu position - over or under the tapped element
The current implementation of the RadContextMenu exposes a PortraitAlignment property which can be useful in such scenarios. For example, if you set it to Stretch, it will fill the available area and this problem should not be present.
Please, let me know if this helps.
Regards,
Ivaylo Gergov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.