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

Reply
Developer
Posts: 123
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C
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?

 

Developer
Posts: 16,637
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Developer
Posts: 1,645
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, 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
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Regular Contributor
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550
My Carrier: tatadocomo

Re: disabling peek

[ Edited ]

waht is workOrderCustomMapPage

 

is it     id: of page or  property variant

Developer
Posts: 16,637
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: disabling peek

it's the id. you can also check for the objectName or other properties.
----------------------------------------------------------
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
Regular Contributor
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550
My Carrier: tatadocomo

Re: disabling peek

actually in my application  

 

i am using navigatione pane as firstpage  ,i want to disable the peek for secondpage

 

i tried same code but it is not working

 please help me

Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: disabling peek

This should work for any page in the app


Read my thoughts on BlackBerry Development at news.ebscer.com
New Developer
Posts: 21
Registered: ‎12-02-2012
My Device: BB10 Alpha Dev B
My Carrier: TrueMove-H

Re: disabling peek

Set peekEnabled to false in NavigationPane. It affects all pages.