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.

Since:

BlackBerry 10.1.0

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-03-13

comments powered by Disqus