@using System.Drawing @using System.Globalization
@if(!dialogPage.Text.IsNullOrEmpty()){
@dialogPage.Text
}
@code { [Parameter] public WebReport WebReport { get; set; } [Parameter] public DialogPage dialogPage { get; set; } protected override void OnParametersSet() { base.OnParametersSet(); WebReport.Dialog.SetScaling(dialogPage); } private string GetColor { get { if (dialogPage.BackColor != Color.Empty) return $"background-color: {ColorTranslator.ToHtml(dialogPage.BackColor)};"; return string.Empty; } } }