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,830
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: 913
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.
Contributor
kishorerao
Posts: 21
Registered: ‎06-08-2012
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: 13,830
Registered: ‎07-29-2008
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.
Contributor
kishorerao
Posts: 21
Registered: ‎06-08-2012
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: 735
Registered: ‎08-31-2009
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.