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

38 lines
944 B
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
{
2022-09-06 16:08:19 +02:00
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FeesAndBikesPage : TabbedPage
{
public FeesAndBikesPageViewModel ViewModel { get; }
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
public FeesAndBikesPage()
{
InitializeComponent();
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
ViewModel = new FeesAndBikesPageViewModel(
App.ModelRoot.NextActiveUri.Host,
App.ModelRoot.ResourceUrls.FeesResourcePath,
App.ModelRoot.ResourceUrls.BikesResourcePath,
App.ModelRoot.IsSiteCachingOn);
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
BindingContext = ViewModel;
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
/// Info about renting.
InfoRentBikeWebView.Navigating += ViewModelHelper.OnNavigating;
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
/// Info about types of bikes.
InfoTypesOfBikesWebView.Navigating += ViewModelHelper.OnNavigating;
}
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
/// <summary> Called when page is shown. </summary>
protected override void OnAppearing()
{
ViewModel.OnAppearing();
}
}
2021-11-07 19:42:59 +01:00
}