wip gest
This commit is contained in:
parent
031a5d9f3d
commit
abed1ace4a
2 changed files with 27 additions and 17 deletions
|
|
@ -23,9 +23,10 @@
|
||||||
|
|
||||||
<Label Text="Compte utilisateur" StyleClass="Header">
|
<Label Text="Compte utilisateur" StyleClass="Header">
|
||||||
</Label>
|
</Label>
|
||||||
<lc:GesturesContentView>
|
<StackLayout>
|
||||||
<StackLayout>
|
<StackLayout>
|
||||||
<Frame>
|
<lc:GesturesContentView ExcludeChildren="false" VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}">
|
||||||
|
<Frame VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}">
|
||||||
<lb:Gestures.Interests>
|
<lb:Gestures.Interests>
|
||||||
<lb:GestureCollection>
|
<lb:GestureCollection>
|
||||||
<lb:GestureInterest GestureType="LongPress"
|
<lb:GestureInterest GestureType="LongPress"
|
||||||
|
|
@ -33,24 +34,22 @@
|
||||||
/>
|
/>
|
||||||
</lb:GestureCollection>
|
</lb:GestureCollection>
|
||||||
</lb:Gestures.Interests>
|
</lb:Gestures.Interests>
|
||||||
<StackLayout>
|
<Image Source="{Binding Avatar}" Aspect="AspectFit"
|
||||||
|
VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}" />
|
||||||
<Image Source="{Binding Avatar}" Aspect="AspectFit" VisualElement.HeightRequest="{StaticResource BigUserAvatarSize}" />
|
|
||||||
|
|
||||||
<Label Text="{Binding UserName}" Style="{StaticResource LabelPageHeadingStyle}"
|
|
||||||
HorizontalTextAlignment="Center"
|
|
||||||
LineBreakMode="WordWrap" XAlign="Center"
|
|
||||||
></Label>
|
|
||||||
</StackLayout>
|
|
||||||
</Frame>
|
</Frame>
|
||||||
<views:RatingView Rating="{Binding Rating, Mode=TwoWay}" x:Name="ratingView"/>
|
|
||||||
</StackLayout>
|
|
||||||
|
|
||||||
</lc:GesturesContentView>
|
</lc:GesturesContentView>
|
||||||
|
</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 PerformerStatus}" Clicked="OnViewPerformerStatus" />
|
||||||
<Button Text="{Binding UserQueries}" Clicked="OnViewUserQueries" VisualElement.IsVisible="{Binding UserIsPro}"/>
|
<Button Text="{Binding UserQueries}" Clicked="OnViewUserQueries"
|
||||||
|
VisualElement.IsVisible="{Binding UserIsPro}"/>
|
||||||
<StackLayout Orientation="Horizontal" VisualElement.IsVisible="{Binding HaveAnUser}">
|
<StackLayout Orientation="Horizontal" VisualElement.IsVisible="{Binding HaveAnUser}">
|
||||||
<Label Text="Recevoir les notifications push" StyleClass="Header" />
|
<Label Text="Recevoir les notifications push" StyleClass="Header" />
|
||||||
<Switch IsToggled="{Binding ReceivePushNotifications, Mode=TwoWay}"
|
<Switch IsToggled="{Binding ReceivePushNotifications, Mode=TwoWay}"
|
||||||
|
|
@ -60,8 +59,10 @@
|
||||||
<Label Text="Utiliser ma position" StyleClass="Header" />
|
<Label Text="Utiliser ma position" StyleClass="Header" />
|
||||||
<Switch HorizontalOptions="End" IsToggled="{Binding AllowUseMyPosition, Mode=TwoWay}"/>
|
<Switch HorizontalOptions="End" IsToggled="{Binding AllowUseMyPosition, Mode=TwoWay}"/>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<StackLayout Orientation="Horizontal" VerticalOptions="Start" VisualElement.IsVisible="{Binding UserIsPro}">
|
<StackLayout Orientation="Horizontal" VerticalOptions="Start"
|
||||||
<Label Text="Ne recevoir de demande de devis que de la part de professionnels uniquement" StyleClass="Header"/>
|
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}"/>
|
<Switch HorizontalOptions="End" IsToggled="{Binding AllowProBookingOnly, Mode=TwoWay}"/>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,15 @@ namespace BookAStar.Pages
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnBindingContextChanged()
|
||||||
|
{
|
||||||
|
base.OnBindingContextChanged();
|
||||||
|
// Assert ((DashboardViewModel)BindingContext!=null)
|
||||||
|
((DashboardViewModel)BindingContext).UserNameGesture
|
||||||
|
= new RelayGesture( (gesture,arg) => {
|
||||||
|
ShowPage<AccountChooserPage>(null, true);
|
||||||
|
});
|
||||||
|
}
|
||||||
public void OnViewPerformerStatus(object sender, EventArgs e)
|
public void OnViewPerformerStatus(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ShowPage<AccountChooserPage>(null, true);
|
ShowPage<AccountChooserPage>(null, true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue