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
Trusted Contributor
marcelnijman
Posts: 117
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?

 

Please use plain text.
Developer
simon_hain
Posts: 15,869
Registered: ‎07-29-2008
My Device: Z10 LE
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: 1,428
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
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Regular Contributor
kishorerao
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

Please use plain text.
Developer
simon_hain
Posts: 15,869
Registered: ‎07-29-2008
My Device: Z10 LE
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
Please use plain text.
Regular Contributor
kishorerao
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

Please use plain text.
Developer
Ebscer
Posts: 848
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
Please use plain text.
New Developer
tonygml
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.

Please use plain text.