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
connyhald
Posts: 102
Registered: ‎06-03-2012
My Device: Playbook

From ControlDelegate cannot access ContextProperty

If I create a some controls using ControlDelegate I do not have access to my ContextProperties of the root QmlDocument from within theese controls.

 

Is this a bug or by design? Are there known workarounds?

 

If tried doing something like this without success:

    ControlDelegate {
        source: "DetailSheet.qml"
        delegateActive: false

        onControlChanged: {
            if (control) {
                control.app = root.app // <<<<< Passing the context property
                control.open()
            }
        }
    }

 

-----------
http://kodira.de
BB Apps: Pattern :: Plonk