Skip to content

Commit

Permalink
Merge pull request #26 from egvijayanand/working
Browse files Browse the repository at this point in the history
Minor corrections
  • Loading branch information
egvijayanand authored Apr 21, 2022
2 parents 4cc65cb + 3448fb9 commit f126142
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/DateCalculator/DateCalculator.Forms/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<x:String x:Key="AppFont">Roboto400</x:String>
<x:Double x:Key="AppFontSize">14</x:Double>

<x:Double x:Key="ItemSpacing">5</x:Double>

<Color x:Key="Primary">#3700B3</Color>
<Color x:Key="White">White</Color>
<Color x:Key="Black">Black</Color>
Expand All @@ -28,6 +30,10 @@
<Setter Property="BackgroundColor" Value="{AppThemeBinding Dark={StaticResource BackgroundDark}, Light={StaticResource BackgroundLight}}" />
</Style>

<Style TargetType="StackLayout">
<Setter Property="Spacing" Value="{StaticResource ItemSpacing}" />
</Style>

<Style TargetType="Label">
<Setter Property="TextColor" Value="{AppThemeBinding Dark={StaticResource TextDark}, Light={StaticResource TextLight}}" />
<Setter Property="FontFamily" Value="{StaticResource AppFont}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public DateViewModel()

public IList<int> Range { get; init; }

// While using classic MVVM
/*
public DateTime StartDate
{
Expand Down Expand Up @@ -104,25 +105,25 @@ public bool DiffMode
public string SelectedMode
{
get => selectedMode;
set => SetProperty(ref selectedMode, value, onChanged: FindTheResult);
set => SetProperty(ref selectedMode, value, onChanged: FindTheDate);
}
public int SelectedYear
{
get => selectedYear;
set => SetProperty(ref selectedYear, value, onChanged: FindTheResult);
set => SetProperty(ref selectedYear, value, onChanged: FindTheDate);
}
public int SelectedMonth
{
get => selectedMonth;
set => SetProperty(ref selectedMonth, value, onChanged: FindTheResult);
set => SetProperty(ref selectedMonth, value, onChanged: FindTheDate);
}
public int SelectedDay
{
get => selectedDay;
set => SetProperty(ref selectedDay, value, onChanged: FindTheResult);
set => SetProperty(ref selectedDay, value, onChanged: FindTheDate);
}
public string ResultCaption
{
Expand All @@ -142,7 +143,7 @@ public string DiffInDays
set => SetProperty(ref diffInDays, value);
}
public ICommand DiffCommand => new Command(FindTheResult);
public ICommand DiffCommand => new Command(FindTheDate);
*/

partial void OnDiffModeChanged(bool value)
Expand Down

0 comments on commit f126142

Please sign in to comment.