Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Numeric Date Input - Handle low resolution screens #144

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Smartway.UiComponent.Sample/Inputs/Views/Inputs.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
Date="{Binding Date}"/>
<Label Text="{Binding Date, StringFormat='Date selectionnée: {0}'}"/>
<inputs:NumericDateEntry
GlobalFontSize="17"
Margin="70, 0"
DatePlaceholder="{Binding MinimumDate}"
ErrorCommand="{Binding ErrorDateCommand}"/>
Expand Down
10 changes: 5 additions & 5 deletions Smartway.UiComponent/Inputs/NumericDateEntry.xaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<Grid xmlns="http://xamarin.com/schemas/2014/forms"
<StackLayout xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Smartway.UiComponent.Inputs.NumericDateEntry"
x:Name="Self"
HorizontalOptions="Center"
ColumnDefinitions="*, Auto, *, Auto, *">
<Grid.Resources>
Orientation="Horizontal">
<StackLayout.Resources>
<ResourceDictionary>
<Style TargetType="Label">
<Setter Property="FontFamily" Value="OpenSans"/>
Expand All @@ -23,10 +23,10 @@
<Setter Property="MaxLength" Value="2" />
</Style>
</ResourceDictionary>
</Grid.Resources>
</StackLayout.Resources>
<Entry x:Name="FirstEntry" Grid.Column="0" Focused="OnFocusedSelectAllEntryContent"/>
<Label Grid.Column="1" Text="/"/>
<Entry x:Name="SecondEntry" Grid.Column="2" Focused="OnFocusedSelectAllEntryContent"/>
<Label Grid.Column="3" Text="/"/>
<Entry x:Name="ThirdEntry" Grid.Column="4" Focused="OnFocusedSelectAllEntryContent"/>
</Grid>
</StackLayout>
Loading