I use SplitView
for my XAML page. Inside the SplitView
, trigger behavior doesn't work.
For example:
<SplitView.Content>
<Grid>
<Button x:Name="Button">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="Click" >
<Core:GoToStateAction StateName="SplitViewState />
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Button>
</Grid>
</SplitView.Content>
When clicking the button, nothing happens. It works on elements outside the SplitView
.
I guess you missed setup
TargetObject
value.UPDATED
Look at behavior with 4 buttons which placed inside
SplitView.Content
,SplitView.Pane
and outside. All works very well.Look how it works: