using Microsoft.AspNetCore.Components; using WebWindowComplex.Models; namespace WebWindowComplex.Compo { public partial class FrameBottomRail { #region Public Properties /// /// Frame corrente /// [CascadingParameter(Name = "CurrFrameWindow")] public Frame CurrFrame { get; set; } = null!; [Parameter] public EventCallback EC_UpdateFrame { get; set; } #endregion Public Properties #region Private Properties /// /// Aggiornamento element Bottom Rail /// /// /// private async Task UpdateElement(ElementDimension updRec) { // cerco il record var currRec = CurrFrame.BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex); // lo aggiorno if (updRec != null) { currRec = updRec; await EC_UpdateFrame.InvokeAsync(CurrFrame); } } #endregion Private Properties } }