From 9134b9d96424b7f14257805ddd3e0a79066c5795 Mon Sep 17 00:00:00 2001 From: cocoa-dev004 <66989461+cocoa-dev004@users.noreply.github.com> Date: Tue, 29 Mar 2022 09:43:30 +0900 Subject: [PATCH 1/4] Refactor layout of ContactedNotifyPage --- .../HomePage/ContactedNotifyPageViewModel.cs | 4 +- .../Views/HomePage/ContactedNotifyPage.xaml | 182 +++++++++--------- 2 files changed, 88 insertions(+), 98 deletions(-) diff --git a/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs b/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs index b49b1d176..c2b2c6ef8 100644 --- a/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs +++ b/Covid19Radar/Covid19Radar/ViewModels/HomePage/ContactedNotifyPageViewModel.cs @@ -24,14 +24,14 @@ public class ContactedNotifyPageViewModel : ViewModelBase private readonly IExposureRiskCalculationConfigurationRepository _exposureRiskCalculationConfigurationRepository; - private string _exposureDurationInMinutes; + private string _exposureDurationInMinutes = ""; public string ExposureDurationInMinutes { get { return _exposureDurationInMinutes; } set { SetProperty(ref _exposureDurationInMinutes, value); } } - private string _exposureCount; + private string _exposureCount = ""; public string ExposureCount { get { return _exposureCount; } diff --git a/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml b/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml index 947f73fdf..ca9e7824d 100644 --- a/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml +++ b/Covid19Radar/Covid19Radar/Views/HomePage/ContactedNotifyPage.xaml @@ -7,7 +7,6 @@ x:Class="Covid19Radar.Views.ContactedNotifyPage" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms" xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" xmlns:prism="http://prismlibrary.com" xmlns:resources="clr-namespace:Covid19Radar.Resources" @@ -21,100 +20,91 @@ https://github.com/xamarin/Xamarin.Forms/issues/13597 --> - - - - - - - - -