02-12-2013 03:07 AM
Hi, I am just trying to get a idea how to use NavigationPane in my app.
I am trying to follow this example: https://developer.blackberry.com/cascades/referenc
This is how my class looks like where i want to add a NavigationPane:
import bb.cascades 1.0
NavigationPane {
id: navigationPane
Page {
// Root Container
Container {
...
CustomButton {
text: "Click me"
btnBackground: "asset:///btn-lightblue.png"
btnSelected: "asset:///btn-green.png"
bottomPadding: 12.0
topPadding: 12.0
// This is where I want the second Page to show up
onTouch: {
var page = pageDefinition.createObject();
navigationPane.push(page);
}
attachedObjects: ComponentDefinition { // where should this go?
id: pageDefinition;
source: "SecondDialog.qml"
}
}
...
} // Container
} // Page
onPopTransitionEnded: { page.destroy(); }
} // Navigation PaneBut when the user clicks the "Click me" button the SecondDialog.qml does not show up... Can someone notice what am I doing wrong .... ??? Thank you.
Solved! Go to Solution.
02-12-2013 03:18 AM
02-12-2013 03:23 AM
02-12-2013 03:34 AM
OK, it's solved, the problem was in the second page I was adding to the navigation pane, I was missing a " import bb.cascades 1.0" -- there ![]()
02-12-2013 03:43 AM - edited 02-12-2013 03:44 AM
02-12-2013 03:49 AM