2021-11-07 19:42:59 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:conv="clr-namespace:TINK.View"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
2022-08-30 15:42:25 +02:00
|
|
|
x:Class="TINK.View.Contact.ContactPage">
|
|
|
|
<Shell.TitleView>
|
|
|
|
<Grid ColumnDefinitions="Auto, 1*">
|
|
|
|
<Label Style="{StaticResource Label-Navbar}"
|
|
|
|
Text="{x:Static resources:AppResources.MarkingContactPageTitle}"/>
|
|
|
|
</Grid>
|
|
|
|
</Shell.TitleView>
|
2021-11-07 19:42:59 +01:00
|
|
|
<ContentPage.Resources>
|
|
|
|
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
|
|
|
<conv:BoolInverterConverter x:Key="BoolInvert_Converter"/>
|
|
|
|
</ContentPage.Resources>
|
|
|
|
<ContentPage.Content>
|
|
|
|
<ScrollView>
|
|
|
|
<Frame>
|
|
|
|
<StackLayout x:Name="ContactPageView">
|
|
|
|
<Frame
|
|
|
|
IsVisible="{Binding
|
|
|
|
Path=IsOperatorInfoAvaliable,
|
|
|
|
Converter={StaticResource BoolInvert_Converter}}">
|
|
|
|
<!-- Button to select station and explanation text -->
|
|
|
|
<StackLayout>
|
|
|
|
<Label
|
|
|
|
TextType="Html"
|
|
|
|
Text="{x:Static resources:AppResources.MarkingContactNoStationInfoAvailableNoButton}"/>
|
|
|
|
<Button
|
|
|
|
Text="{x:Static resources:AppResources.ActionSelectStation}"
|
|
|
|
Command="{Binding OnSelectStationRequest}"/>
|
|
|
|
</StackLayout>
|
|
|
|
</Frame>
|
|
|
|
<Frame
|
|
|
|
IsVisible="{Binding IsOperatorInfoAvaliable}">
|
|
|
|
<!-- Operator info -->
|
|
|
|
<StackLayout>
|
|
|
|
<Label
|
|
|
|
IsVisible="{Binding IsOperatorInfoAvaliable}"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
FontAttributes="Bold"
|
|
|
|
Text="{Binding ProviderNameText}"/>
|
2022-08-30 15:42:25 +02:00
|
|
|
<!--- Mail to operator -->
|
2021-11-07 19:42:59 +01:00
|
|
|
<Label
|
|
|
|
IsVisible="{Binding MailAddressText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
|
|
FormattedText="{Binding MailAddressAndMotivationsText}"/>
|
|
|
|
<Button
|
|
|
|
x:Name="MailAddressButton"
|
|
|
|
IsVisible="{Binding MailAddressText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
|
|
Text="{Binding MailAddressText}"
|
|
|
|
IsEnabled="{Binding IsSendMailAvailable}"
|
2022-09-06 16:08:19 +02:00
|
|
|
Command="{Binding OnMailToOperatorRequest}"/>
|
2022-08-30 15:42:25 +02:00
|
|
|
<!--- Phone -->
|
2021-11-07 19:42:59 +01:00
|
|
|
<Label
|
|
|
|
IsVisible="{Binding PhoneNumberText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
|
|
FormattedText="{Binding PhoneContactText}"/>
|
2022-08-30 15:42:25 +02:00
|
|
|
<Button
|
2021-11-07 19:42:59 +01:00
|
|
|
x:Name="PhoneNumberButton"
|
|
|
|
IsVisible="{Binding PhoneNumberText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
|
|
Text="{Binding PhoneNumberText}"
|
|
|
|
IsEnabled="{Binding IsDoPhoncallAvailable}"
|
|
|
|
Command="{Binding OnPhoneRequest}"/>
|
2022-08-30 15:42:25 +02:00
|
|
|
<!--Possible SecondaryButton Style-->
|
|
|
|
<!--<Button
|
|
|
|
Style="{StaticResource SecondaryButton}"
|
|
|
|
x:Name="PhoneNumberButton"
|
|
|
|
IsVisible="{Binding PhoneNumberText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
|
|
|
Text="{Binding PhoneNumberText}"
|
|
|
|
IsEnabled="{Binding IsDoPhoncallAvailable}"
|
|
|
|
Command="{Binding OnPhoneRequest}"/>-->
|
2021-11-07 19:42:59 +01:00
|
|
|
</StackLayout>
|
|
|
|
</Frame>
|
|
|
|
<Frame>
|
|
|
|
<StackLayout>
|
|
|
|
<Label FormattedText="{Binding LikeTinkApp}"/>
|
2022-08-30 15:42:25 +02:00
|
|
|
<!--- Mail to app- releated support -->
|
|
|
|
<Button
|
|
|
|
Text="{x:Static resources:AppResources.ActionContactMailAppReleated}"
|
|
|
|
IsEnabled="{Binding IsSendMailAvailable}"
|
|
|
|
Command="{Binding OnMailAppRelatedRequest}"/>
|
|
|
|
<!--- Link to App Store -->
|
|
|
|
<Label
|
|
|
|
Margin="0,10,0,0"
|
|
|
|
TextType="Html"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
TextColor="{DynamicResource primary-back-title-color}"
|
|
|
|
Text="{x:Static resources:AppResources.ActionContactRate}">
|
|
|
|
<Label.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding OnRateRequest}"/>
|
|
|
|
</Label.GestureRecognizers>
|
|
|
|
</Label>
|
2021-11-07 19:42:59 +01:00
|
|
|
</StackLayout>
|
|
|
|
</Frame>
|
|
|
|
</StackLayout>
|
|
|
|
</Frame>
|
|
|
|
</ScrollView>
|
|
|
|
</ContentPage.Content>
|
|
|
|
</ContentPage>
|