/// ------------------------------------------------------------------------------------------------ /// ------------------------------------------------------------------------------------------------ /// Name ShowDetails /// /// <summary> To bind the values in view and to set height Request /// </summary> /// <remarks> /// </remarks> /// ------------------------------------------------------------------------------------------------ /// private void ShowDetails(SRiPropertyDetail propertyDetails) { try { Lstvw_Main.HeightRequest = propertyDetails.Details.Count * Device.OnPlatform <double>(45, 45, 35); BindingContext = propertyDetails; } catch (Exception ex) { LogTracking.LogTrace(ex.ToString()); } }
/// ------------------------------------------------------------------------------------------------ #region Public Constructor /// ------------------------------------------------------------------------------------------------ /// public PropertySummaryStacklayout(SRiPropertyDetail propertyDetail) { try { InitializeComponent(); ShowDetails(propertyDetail); } catch (Exception ex) { LogTracking.LogTrace(ex.ToString()); } }