Open the custom container qml page... doesn't work do not

I have the custom object container which is given below

import bb.cascades 1.3

Container {
    layout: DockLayout {

    }
    ImageButton {
        minWidth: 160
        minHeight: 150
        defaultImageSource: "asset:///images/button_container_90x130.png"
        horizontalAlignment: HorizontalAlignment.Center
        verticalAlignment: VerticalAlignment.Center
        onClicked: {console.log("i am clicked")
            var assest = navigateAssist.createObject();
            navigationPane.push(assest);
        }
        attachedObjects: ComponentDefinition {
            id: navigateAssist
            source: "Assist.qml"
        }
      
    }
    ImageButton {
        horizontalAlignment: HorizontalAlignment.Center
        verticalAlignment: VerticalAlignment.Center
        defaultImageSource: "asset:///images/assist.png"

    }

    Container {

        horizontalAlignment: HorizontalAlignment.Center
        verticalAlignment: VerticalAlignment.Center
        topPadding: 100
        bottomPadding: 10
        layout: StackLayout {

        }
        Label {
            text: "Assist"
            textStyle {
                base: SystemDefaults.TextStyles.SmallText
                color: Color.Black
            }

        }

    }

}

QML is not opening when struck the Imagebutton control.

I checked with the console... Console.log () is printing.

Maybe the container with the label policy thus needs?

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for