allow to select a date & fix issue
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
using Billing.Themes;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Billing.UI
|
||||
@ -44,8 +43,8 @@ namespace Billing.UI
|
||||
ColumnDefinitions =
|
||||
{
|
||||
new ColumnDefinition { Width = GridLength.Auto },
|
||||
new ColumnDefinition { Width = new GridLength(.3, GridUnitType.Star) },
|
||||
new ColumnDefinition { Width = new GridLength(.7, GridUnitType.Star) }
|
||||
new ColumnDefinition { Width = new GridLength(.35, GridUnitType.Star) },
|
||||
new ColumnDefinition { Width = new GridLength(.65, GridUnitType.Star) }
|
||||
},
|
||||
Children =
|
||||
{
|
||||
@ -220,7 +219,7 @@ namespace Billing.UI
|
||||
Margin = new Thickness(6, 0)
|
||||
}
|
||||
.Binding(Image.SourceProperty, nameof(ImageSource))
|
||||
.Binding(TintImage.PrimaryColorProperty, nameof(TintColor)),
|
||||
.Binding(TintHelper.TintColorProperty, nameof(TintColor)),
|
||||
|
||||
new TintImage
|
||||
{
|
||||
@ -270,7 +269,7 @@ namespace Billing.UI
|
||||
protected override View Content => new OptionDatePicker
|
||||
{
|
||||
HorizontalOptions = LayoutOptions.End,
|
||||
VerticalOptions = LayoutOptions.Center
|
||||
VerticalOptions = LayoutOptions.Fill
|
||||
}
|
||||
.Binding(DatePicker.DateProperty, nameof(Date), mode: BindingMode.TwoWay)
|
||||
.DynamicResource(DatePicker.TextColorProperty, BaseTheme.TextColor)
|
||||
@ -290,7 +289,7 @@ namespace Billing.UI
|
||||
protected override View Content => new OptionTimePicker
|
||||
{
|
||||
HorizontalOptions = LayoutOptions.End,
|
||||
VerticalOptions = LayoutOptions.Center
|
||||
VerticalOptions = LayoutOptions.Fill
|
||||
}
|
||||
.Binding(TimePicker.TimeProperty, nameof(Time), mode: BindingMode.TwoWay)
|
||||
.DynamicResource(TimePicker.TextColorProperty, BaseTheme.TextColor)
|
||||
@ -329,7 +328,8 @@ namespace Billing.UI
|
||||
{
|
||||
HorizontalOptions = LayoutOptions.Fill,
|
||||
HorizontalTextAlignment = TextAlignment.End,
|
||||
VerticalOptions = LayoutOptions.Center,
|
||||
VerticalOptions = LayoutOptions.Fill,
|
||||
VerticalTextAlignment = TextAlignment.Center,
|
||||
ReturnType = ReturnType.Next
|
||||
}
|
||||
.Binding(Entry.TextProperty, nameof(Text), mode: BindingMode.TwoWay)
|
||||
|
Reference in New Issue
Block a user