mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
39 lines
No EOL
1.3 KiB
C#
39 lines
No EOL
1.3 KiB
C#
using TINK.ViewModel;
|
|
using TINK.ViewModel.Info;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
namespace TINK.View.Info
|
|
{
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
public partial class InfoPage : TabbedPage
|
|
{
|
|
public InfoPageViewModel ViewModel { get; }
|
|
|
|
public InfoPage()
|
|
{
|
|
InitializeComponent();
|
|
|
|
ViewModel = new InfoPageViewModel(
|
|
App.ModelRoot.NextActiveUri.Host,
|
|
App.ModelRoot.ResourceUrls.AgbResourcePath,
|
|
App.ModelRoot.ResourceUrls.PrivacyResourcePath,
|
|
App.ModelRoot.ResourceUrls.ImpressResourcePath,
|
|
App.ModelRoot.IsSiteCachingOn,
|
|
resourceName => ViewModelResourceHelper.GetSource(resourceName));
|
|
TabbedInfoPage.BindingContext = ViewModel;
|
|
|
|
InfoLicenses.Navigating += ViewModelHelper.OnNavigating;
|
|
InfoDatenschutz.Navigating += ViewModelHelper.OnNavigating;
|
|
InfoABG.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
InfoImpressum.Navigating += ViewModelHelper.OnNavigating;
|
|
}
|
|
|
|
/// <summary> Called when page is shown. </summary>
|
|
protected override void OnAppearing()
|
|
{
|
|
ViewModel.OnAppearing();
|
|
}
|
|
}
|
|
} |