usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Runtime.InteropServices.WindowsRuntime;usingWindows.Foundation;usingWindows.Foundation.Collections;usingWindows.UI.Xaml;usingWindows.UI.Xaml.Controls;usingWindows.UI.Xaml.Controls.Primitives;usingWindows.UI.Xaml.Data;usingWindows.UI.Xaml.Input;usingWindows.UI.Xaml.Media;usingWindows.UI.Xaml.Navigation;// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238namespaceFrance_Vacances.View{/// <summary>/// An empty page that can be used on its own or navigated to within a Frame./// </summary>publicsealedpartialclassAccommodationView:Page{privateinti=0;publicAccommodationView(){this.InitializeComponent();}privatevoidGoToBookingView(objectsender,RoutedEventArgse){Frame.Navigate(typeof(BookingView));}privatevoidPreviousImage(objectsender,RoutedEventArgse){if(i!=0)i--;BindingmyBinding=newBinding();myBinding.Path=newPropertyPath("DisplayedAccommodationModel.Images"+"["+i+"]");BindingOperations.SetBinding(ImageViewerBackground,ImageBrush.ImageSourceProperty,myBinding);}privatevoidNextImage(objectsender,RoutedEventArgse){if(i!=4)i++;BindingmyBinding=newBinding();myBinding.Path=newPropertyPath("DisplayedAccommodationModel.Images"+"["+i+"]");BindingOperations.SetBinding(ImageViewerBackground,ImageBrush.ImageSourceProperty,myBinding);}}}