public Personal_Details() { InitializeComponent(); Xamarin.Forms.Application.Current.On <Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize); // iOS Platform On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); PersonalDetailsVM = new Personal_DetailsVM(this.Navigation); this.BindingContext = PersonalDetailsVM; }
public Personal_Details() { InitializeComponent(); Xamarin.Forms.Application.Current.On <Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize); // iOS Platform On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); PersonalDetailsVM = new Personal_DetailsVM(this.Navigation); this.BindingContext = PersonalDetailsVM; //To Show Profile Pic MessagingCenter.Subscribe <string>("", "LoadImage", (sender) => { Device.BeginInvokeOnMainThread(() => { try { if (!string.IsNullOrEmpty(PersonalDetailsVM.UserProfileBase64)) { imgUserProfile.Aspect = Aspect.AspectFill; imgUserProfile.Margin = new Thickness(0); imgUserProfile.Source = Helpers.Constants.imgFilePath; PersonalDetailsVM.IsCamera = false; } } catch (Exception) { } }); }); //To Show Profile Pic MessagingCenter.Subscribe <string>("", "LoadApiImage", (sender) => { Device.BeginInvokeOnMainThread(() => { try { if (!string.IsNullOrEmpty(PersonalDetailsVM.UserProfileBase64)) { imgUserProfile.Aspect = Aspect.AspectFill; imgUserProfile.Margin = new Thickness(0); imgUserProfile.Source = Utilities.Utility.GetImageFromBase64(PersonalDetailsVM.UserProfileBase64); } } catch (Exception) { } }); }); }