Skip to content

Commit

Permalink
Improved a DatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Feb 3, 2023
1 parent 649f219 commit 68a96c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/GWallet.Frontend.XF/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@
HorizontalOptions="FillAndExpand"
TextColor="Transparent"
DateSelected="datePicker_DateSelected"/>
<Label x:Name="dateOfBirthLabel"
<Entry x:Name="dateOfBirthLabel"
Placeholder="Choose your date of birth"
BackgroundColor="Transparent"
TextColor="#252525"
VerticalOptions="Center"
TextColor="#A9A9A9"
Margin="10,0,0,0"
IsEnabled="False"
Text="Choose your date of birth"/>
InputTransparent="True"
IsEnabled="False"/>
</Grid>

<Entry x:Name="emailEntry"
Expand Down
3 changes: 1 addition & 2 deletions src/GWallet.Frontend.XF/SettingsPage.xaml.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type SettingsPage(option:string) as this =
let phraseEntry = base.FindByName<Entry> "phraseEntry"
let emailEntry = base.FindByName<Entry> "emailEntry"
let dateOfBirthPicker = base.FindByName<DatePicker> "dateOfBirthPicker"
let dateOfBirthLabel = base.FindByName<Label> "dateOfBirthLabel"
let dateOfBirthLabel = base.FindByName<Entry> "dateOfBirthLabel"

//loading & result
let resultMessage = base.FindByName<Label> "resultMessage"
Expand Down Expand Up @@ -61,7 +61,6 @@ type SettingsPage(option:string) as this =

member this.datePicker_DateSelected (sender: obj) (e: Xamarin.Forms.DateChangedEventArgs) =
dateOfBirthLabel.Text <- e.NewDate.ToString("dd MMMM yyyy")
dateOfBirthLabel.TextColor <- Color.FromHex("#252525");



Expand Down

0 comments on commit 68a96c8

Please sign in to comment.