Please login to access all of the features of the Community Site.

SetPageTitle

Mobile20.0

Changes the title shown in the navigation bar of the current page while the page is open. Use it when the right title depends on something the page loads or the person picks, such as the name of a group or an event.

The CommandParameter is a string. Pass text to replace the title, or an empty string to hide the title while keeping the navigation bar. Leave the CommandParameter off to put back the title set on the page in Rock.

Note

The new title only lasts while the page is open. The next time the page opens, it shows the title set in Rock again.

Examples

<Button Text="Rename"
    Command="{Binding SetPageTitle}"
    CommandParameter="Small Group Leaders" />
<Button Text="Reset Title"
    Command="{Binding SetPageTitle}" />