sharee.bike-App/LastenradBayern/TINK/View/FeesAndBikes/FeesAndBikesPage.xaml.cs

38 lines
1.1 KiB
C#
Raw Normal View History

2021-11-07 19:42:59 +01:00
using TINK.ViewModel;
2022-08-30 15:42:25 +02:00
using TINK.ViewModel.Contact;
2021-11-07 19:42:59 +01:00
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace TINK.View.Contact
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FeesAndBikesPage : TabbedPage
{
2022-01-22 18:28:01 +01:00
public FeesAndBikesPageViewModel ViewModel { get; }
2021-11-07 19:42:59 +01:00
2022-08-30 15:42:25 +02:00
public FeesAndBikesPage()
2021-11-07 19:42:59 +01:00
{
InitializeComponent();
2022-01-22 18:28:01 +01:00
ViewModel = new FeesAndBikesPageViewModel(
2021-11-07 19:42:59 +01:00
App.ModelRoot.NextActiveUri.Host,
2022-01-22 18:28:01 +01:00
App.ModelRoot.ResourceUrls.FeesResourcePath,
App.ModelRoot.ResourceUrls.BikesResourcePath,
App.ModelRoot.IsSiteCachingOn);
2021-11-07 19:42:59 +01:00
BindingContext = ViewModel;
/// Info about renting.
InfoRentBikeWebView.Navigating += ViewModelHelper.OnNavigating;
/// Info about types of bikes.
2022-08-30 15:42:25 +02:00
InfoTypesOfBikesWebView.Navigating += ViewModelHelper.OnNavigating;
2021-11-07 19:42:59 +01:00
}
/// <summary> Called when page is shown. </summary>
protected override void OnAppearing()
{
ViewModel.OnAppearing();
}
}
}