A dashboard carries its own colors; you can read them on the server and pass them to the layout so the surrounding web page matches the dashboard.

Read the theme colors from the dashboard page. In the Index action:
var report = StiReport.CreateNewDashboard();
report.Load(StiNetCoreHelper.MapPath(this, $"Dashboards/{id}.mrt"));

var dashboard = report.Pages[0] as StiDashboard;
ViewBag.DashboardBackHtmlColor = ColorTranslator.ToHtml(StiDashboardStyleHelper.GetDashboardBackColor(dashboard, true));
ViewBag.BackHtmlColor = ColorTranslator.ToHtml(StiDashboardStyleHelper.GetBackColor(dashboard));
ViewBag.ForeHtmlColor = ColorTranslator.ToHtml(StiDashboardStyleHelper.GetForeColor(dashboard));

How it works. The page picks up the dashboard's own palette, so the frame around the viewer blends seamlessly with the dashboard style.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.