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
nik005
Posts: 46
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company

how to restrict menu from being visible on swipe

Hello All,

             I want to restrict my menu to be visible on swipe. I have changed peekEnabled property to false bu it is not working. please help me out guys....:Dots:

Please use plain text.
Developer
MagnumOpus
Posts: 138
Registered: ‎01-03-2013
My Device: n/a
My Carrier: n/a

Re: how to restrict menu from being visible on swipe

Show us the code to see what you're trying to do.

Regards.

If my answer has been useful to you, please, click the button
Please use plain text.
Developer
Ebscer
Posts: 865
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: how to restrict menu from being visible on swipe

I think what you want is 

 

Application.menuEnabled = false

 


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
zeusk
Posts: 33
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: Vodafone

Re: how to restrict menu from being visible on swipe

Thanks, works well! The documentation is so confusing about this :/

Please use plain text.
Developer
nik005
Posts: 46
Registered: ‎05-30-2014
My Device: BlackBerry Z10
My Carrier: Company

Re: how to restrict menu from being visible on swipe

@

    ListView {
        id: imagesListView
        
        dataModel: XmlDataModel {
            id: imagesListViewDataModel
            source: "asset:///models/mostpopularpackage.xml"
        }
        
        layout: StackListLayout {
            orientation: LayoutOrientation.LeftToRight
        }
        
        flickMode: FlickMode.SingleItem
        snapMode: SnapMode.LeadingEdge
              
        listItemComponents: [
            ListItemComponent {
                id: myItem
                type: "item"
                Container {
                    ImageView {
                        imageSource: ListItemData.thumbURL
                    }
                }
            }
        ]
        
        scrollIndicatorMode: ScrollIndicatorMode.Default
        scrollRole: ScrollRole.None
    }

 when I swipe it(ListView's Item) to right then the Application menu slides from left side.

To avoid this I have used the property which you have mensioned inside NavigationPane's onCreationComplete.

but it is not working correct always.

               2/10 it mulfunctioning and slides the menu. when I swipeRight on any other components(other than ListView) menu get visible.

 

My Question is:: Is this How it works?


if NO then M I doing anything WronG?

 

:Helpsmilie:

Please use plain text.