TitleBarScrollBehavior

Since: BlackBerry 10.1.0

#include <bb/cascades/TitleBarScrollBehavior>

Represents the different types of scroll behavior used for the TitleBar.

Use the TitleBarScrollBehavior::Type enum values to set a specific scroll behavior for the Page titlebar. The default behavior is TitleBarScrollBehavior::Default.

Here's an example of how to specify the TitleBarScrollBehavior, in QML.
 Page {
    titleBar: TitleBar {
     title: "Page"
     scrollBehavior: TitleBarScrollBehavior.NonSticky
    }
 }
Here's an example of setting the scroll behavior in C++:
 TitleBar* titleBar = TitleBar::create(TitleBarScrollBehavior::NonSticky, TitleBarKind::Default).title("Test");


Overview

Public Types Index

Public Types

Type

Different types of scroll behavior available for the TitleBar:

Since:

BlackBerry 10.1.0

Default

Default behavior can be sticky or scrollable depending on device type.

Sticky

TitleBar is sticked on the top of the page.

Since:

BlackBerry 10.1.0

NonSticky

TitleBar is scrollable.

Since:

BlackBerry 10.1.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus