53 lines
2.5 KiB
XML
53 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="BookAStar.Pages.DashboardPage"
|
|
xmlns:lc="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
|
|
xmlns:lb="clr-namespace:XLabs.Forms.Behaviors;assembly=XLabs.Forms"
|
|
Style="{StaticResource PageStyle}">
|
|
<ContentPage.Resources>
|
|
<ResourceDictionary>
|
|
<Style TargetType="Label">
|
|
<Setter Property="Style" Value="{StaticResource ContentLabelStyle}" />
|
|
</Style>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</ContentPage.Resources>
|
|
<ScrollView>
|
|
<StackLayout Orientation="Vertical" >
|
|
<lc:GesturesContentView>
|
|
<Frame>
|
|
<Label Text="Compte utilisateur" StyleClass="Header">
|
|
</Label>
|
|
<lb:Gestures.Interests>
|
|
<lb:GestureCollection>
|
|
<lb:GestureInterest GestureType="LongPress" GestureCommand="{Binding UserNameGesture}" GestureParameter="LongPress" />
|
|
</lb:GestureCollection>
|
|
</lb:Gestures.Interests>
|
|
<Image Source="{Binding Avatar}" Aspect="AspectFit" VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}" />
|
|
</Frame>
|
|
</lc:GesturesContentView>
|
|
<Label Text="{Binding UserName}" Style="{StaticResource LabelPageHeadingStyle}"
|
|
HorizontalTextAlignment="Center"
|
|
LineBreakMode="WordWrap" XAlign="Center"
|
|
></Label>
|
|
<Button Text="{Binding PerformerStatus}" Clicked="OnViewPerformerStatus" />
|
|
<Button Text="{Binding UserQueries}" Clicked="OnViewUserQueries" />
|
|
<StackLayout Orientation="Horizontal" >
|
|
<Label Text="Recevoir les notifications push" StyleClass="Header" />
|
|
<Switch IsToggled="{Binding ReceivePushNotifications, Mode=TwoWay}"
|
|
HorizontalOptions="End" />
|
|
</StackLayout>
|
|
<StackLayout Orientation="Horizontal">
|
|
<Label Text="Utiliser ma position" StyleClass="Header" />
|
|
<Switch HorizontalOptions="End" IsToggled="{Binding AllowUseMyPosition, Mode=TwoWay}"/>
|
|
</StackLayout>
|
|
<StackLayout Orientation="Horizontal" VerticalOptions="Start">
|
|
<Label Text="Ne recevoir de demande de devis que de la part de professionnels uniquement" StyleClass="Header"/>
|
|
<Switch HorizontalOptions="End" IsToggled="{Binding AllowProBookingOnly, Mode=TwoWay}"/>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</ScrollView>
|
|
</ContentPage> |