allow to select a date & fix issue
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
xmlns:r="clr-namespace:Billing.Languages"
|
||||
xmlns:ui="clr-namespace:Billing.UI"
|
||||
xmlns:v="clr-namespace:Billing.Views"
|
||||
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Billing.Views.BillPage"
|
||||
x:DataType="v:BillPage"
|
||||
@ -22,23 +23,34 @@
|
||||
</ContentPage.Resources>
|
||||
|
||||
<Shell.TitleView>
|
||||
<Grid ColumnSpacing="16" ColumnDefinitions="20, *">
|
||||
<ui:TintImage Source="calendar.png" WidthRequest="20" HeightRequest="20" VerticalOptions="Center"/>
|
||||
<ui:LongPressGrid Grid.Column="1" HorizontalOptions="{OnPlatform iOS=Center, Android=Start}"
|
||||
<Grid ColumnSpacing="16">
|
||||
<DatePicker x:Name="titleDatePicker" IsVisible="False" Date="{Binding SelectedDate, Mode=TwoWay}"
|
||||
ios:DatePicker.UpdateMode="WhenFinished"
|
||||
DateSelected="TitlePicker_DateSelected"/>
|
||||
<ui:LongPressGrid HorizontalOptions="{OnPlatform iOS=Center, Android=Start}" Padding="30, 0, 0, 0"
|
||||
VerticalOptions="Center" LongCommand="{Binding TitleLongPressed}">
|
||||
<Label Text="{Binding SelectedDate, Converter={StaticResource titleDateConverter}}"
|
||||
TextColor="{DynamicResource PrimaryColor}"
|
||||
FontAttributes="Bold" FontSize="20"/>
|
||||
FontSize="{OnPlatform Android=20, iOS=18}">
|
||||
<Label.FontFamily>
|
||||
<OnPlatform x:TypeArguments="x:String"
|
||||
Android="OpenSans-SemiBold.ttf#OpenSans-SemiBold"
|
||||
iOS="OpenSans-Bold"/>
|
||||
</Label.FontFamily>
|
||||
</Label>
|
||||
</ui:LongPressGrid>
|
||||
<ui:TintImageButton Source="calendar.png" WidthRequest="20" HeightRequest="20"
|
||||
VerticalOptions="Center" HorizontalOptions="Start"
|
||||
Command="{Binding TitleDateTap}"/>
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem Order="Primary" IconImageSource="plus.png" Command="{Binding EditBilling}"/>
|
||||
<ToolbarItem Order="Primary" Priority="1" IconImageSource="plus.png" Command="{Binding EditBilling}"/>
|
||||
</ContentPage.ToolbarItems>
|
||||
|
||||
<Grid RowDefinitions="Auto, Auto, *">
|
||||
<ui:BillingDate x:Name="billingDate" SelectedDate="{Binding SelectedDate}" DateSelected="OnDateSelected"/>
|
||||
<ui:BillingDate x:Name="billingDate" DateSelected="OnDateSelected"/>
|
||||
<Grid Grid.Row="1" Padding="8" ColumnSpacing="8" ColumnDefinitions="*, Auto"
|
||||
BackgroundColor="{DynamicResource PromptBackgroundColor}"
|
||||
IsVisible="{Binding NoBills}">
|
||||
|
Reference in New Issue
Block a user