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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Regular Contributor
marcelnijman
Posts: 74
Registered: ‎06-19-2012
My Carrier: none
Accepted Solution

disabling peek

Hello,

 

My custom control requires a right swipe, but this initiates a peek. How can I prevent that?

 

Please use plain text.
Developer
simon_hain
Posts: 13,782
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: disabling peek

you could use a sheet instead of a page
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
ekke
Posts: 909
Registered: ‎04-08-2010
My Carrier: vodafone

Re: disabling peek

if you're using a NavigationPane and open a Page on top from where you dont want allow to peek you can do something like this:

onTopChanged: {
        if (workOrderCustomMapPage == page) {
            peekEnabled = false
        } else {
            peekEnabled = true
        }
    }

 in this case for one specific Page I disable peeking

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.