Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com


Reply
Contributor
Posts: 11
Registered: ‎02-21-2013
My Device: BB10
My Carrier: Koodo
Accepted Solution

Making a gallery of images as context menu

Hi, Im fairly new at the cascade environment and I was wondering if its possible to make a custom context menu that lets you browse different pictures like this image of a picasa viewer. the one Im talking about is at the bottom of the image. Im thinking of using ListView inside the menu but Im not sure if its possible. I like to also ask how to position where the context menu would pop up in a page. Any help, advice or even a link to a sample code would be appreciated. thanks in advance

 

 

picasa image

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Making a gallery of images as context menu

Hi,
This level of control isn't possible using context menu, but I think you can easily simulate it using multiple Containers. ListView can be placed into the bottom one.

A possible design is to use an AbsoluteLayout to slide the bottom container into view with animation. Attach LayoutUpdateHandler to main container to adjust container dimensions on screen rotation and to get initial screen size to place the bottom container off-screen.

Andrey Fidrya, @zmeyc on twitter
Contributor
Posts: 11
Registered: ‎02-21-2013
My Device: BB10
My Carrier: Koodo

Re: Making a gallery of images as context menu

That could be a good solution. I just have to know how to apply a swipe gesture of a button to simulate the opening of the menu though it would be helpful to get a link of a sample code rather than searching it through google for hours