21 lines
1.1 KiB
XML
21 lines
1.1 KiB
XML
<UserControl
|
|
x:Class="WeddingBooth.Views.NavigationView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<UserControl.Resources>
|
|
<BindingProxy x:Key="BindingProxy" DataContext="{Binding}" />
|
|
<BindingProxy x:Key="FlipViewProxy" DataContext="{Binding ElementName=FlipView}" />
|
|
</UserControl.Resources>
|
|
<FlipView
|
|
x:Name="FlipView"
|
|
ItemContainerTemplateSelector="{Binding TemplateSelector}"
|
|
ItemsSource="{Binding}"
|
|
UsesItemContainerTemplateSelector="True" />
|
|
<Interaction.InteractiveFrame>
|
|
<InteractiveFrame EventAggregator="{Binding Source={StaticResource BindingProxy}, Path=DataContext.EventAggregator}">
|
|
<InteractiveFrameButton Invoked="{Invoke Previous, BindingTarget={Binding Source={StaticResource FlipViewProxy}, Path=DataContext}}" Placement="Left" />
|
|
<InteractiveFrameButton Invoked="{Invoke Next, BindingTarget={Binding Source={StaticResource FlipViewProxy}, Path=DataContext}}" Placement="Right" />
|
|
</InteractiveFrame>
|
|
</Interaction.InteractiveFrame>
|
|
</UserControl>
|