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

PushPage

M v1.0

This command pushes a new page onto the navigation stack. This type of navigation allows the user to use the back button to return to the page that pushed the new page.

If the CommandParameter is a string, then it is expected to contain a page's GUID value and, optionally, a set of query string parameters. The first parameter is separated by a ? and any additional parameters are separated by &. Since these query string parameters are inside an XML document, you must escape them (for example, your & must become &).

If you are using data binding you can also bind the CommandParameter to a true GUID value, in which case it must be the GUID of a valid page.

Finally, if you need advanced parameter usage you can use a PushPageParameters object.

Properties

PropertyTypeDescription
PageGuidGuidThe Guid identifier of the page to be pushed onto the navigation stack.
ParametersList<Parameter>  Any additional query string parameters to be passed to the page.
WaitForReadybool  Waits until the page is loaded before displaying it. (Defaults to false.)  
<Button Text="Push Page"
    Command="{Binding PushPage}"
    CommandParameter="e4d80e57-da60-4822-bc22-c071f02958e8" />
<Button Text="Push Page"
    Command="{Binding PushPage}"
    CommandParameter="{Rock:PushPageParameters PageGuid='e4d80e57-da60-4822-bc22-c071f02958e8', WaitForReady='True'}" />
<Button Text="Push Page"
    Command="{Binding PushPage}">
    <Button.CommandParameter>
        <Rock:PushPageParameters PageGuid="e4d80e57-da60-4822-bc22-c071f02958e8">
            <Rock:Parameter Name="GroupId"
                Value="18" />
            <Rock:Parameter Name="Mode"
                Value="Edit" />
        </Rock:PushPageParameters>
    </Button.CommandParameter>
</Button>