69 lines
No EOL
3.4 KiB
XML
69 lines
No EOL
3.4 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"
|
|
xmlns:local="clr-namespace:BookAStar;assembly=BookAStar"
|
|
xmlns:views="clr-namespace:BookAStar.Views;assembly=BookAStar"
|
|
xmlns:extensions="clr-namespace:BookAStar.Extensions;assembly=BookAStar"
|
|
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" >
|
|
<StackLayout>
|
|
<StackLayout>
|
|
<Frame VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}">
|
|
<lc:GesturesContentView ExcludeChildren="false" VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}">
|
|
|
|
<lb:Gestures.Interests>
|
|
<lb:GestureCollection>
|
|
<lb:GestureInterest GestureType="LongPress"
|
|
GestureCommand="{Binding UserNameGesture}"
|
|
/>
|
|
</lb:GestureCollection>
|
|
</lb:Gestures.Interests>
|
|
<Image Source="{Binding Avatar}" Aspect="AspectFit"
|
|
VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}" />
|
|
|
|
</lc:GesturesContentView>
|
|
</Frame>
|
|
</StackLayout>
|
|
<views:RatingView Rating="{Binding Rating, Mode=TwoWay}" x:Name="ratingView"/>
|
|
|
|
<Label Text="{Binding UserName}" Style="{StaticResource LabelPageHeadingStyle}"
|
|
HorizontalTextAlignment="Center"
|
|
LineBreakMode="WordWrap" XAlign="Center"
|
|
></Label>
|
|
</StackLayout>
|
|
|
|
<Button Text="{Binding PerformerStatus}" Clicked="OnViewPerformerStatus" />
|
|
<Button Text="{Binding UserQueries}" Clicked="OnViewUserQueries"
|
|
VisualElement.IsVisible="{Binding UserIsPro}"/>
|
|
<StackLayout Orientation="Horizontal" VisualElement.IsVisible="{Binding HaveAnUser}">
|
|
<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"
|
|
VisualElement.IsVisible="{Binding UserIsPro}">
|
|
<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> |