Skip to content

NavigateToPageAction

Jon W Chu edited this page Nov 16, 2015 · 3 revisions

NavigateToPageAction represents an action that switches the current visual to a specified Page.

This Behaviors enables the navigation to TargetPage with the option of passing navigation arguments via Parameter

Sample Code

XAML

<Button x:Name="button">
    <Interactivity:Interaction.Behaviors>
        <Interactions:EventTriggerBehavior EventName="Click" SourceObject="{Binding ElementName=button}">
            <Interactions:NavigateToPageAction TargetPage="XAMLBehaviorsSample.NavigatePageSample"/>
        </Interactions:EventTriggerBehavior>
    </Interactivity:Interaction.Behaviors>
</Button>