using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace wispro.sp.web.Layouts { public partial class LoginLayout { [Parameter] public string Style { get; set; } = "min-height:100vh;"; EventCallback _layoutStyleCallBack = EventCallback.Empty; EventCallback LayoutStyleCallBack { get { if (_layoutStyleCallBack.Equals(EventCallback.Empty)) _layoutStyleCallBack = EventCallback.Factory.Create(this, SetStyle); return _layoutStyleCallBack; } } public void SetStyle(object style) { if (style != null) { Style = style.ToString(); } } } }