protected async Task HandleEnterAsync(IReference refback, bool appear) { var styles = new Dictionary <string, object> { { "height", $"{CollapsedHeight.ToString(CultureInfo.InvariantCulture)}px" } }; await DomHelpers.SetStyleAsync(refback.Current, styles, trigger : true); OnEnter?.Invoke(refback, appear); }
protected async Task HandleExitingAsync(IReference refback) { var styles = new Dictionary <string, object> { { "height", $"{CollapsedHeight.ToString(CultureInfo.InvariantCulture)}px" }, { "transition-duration", $"{GetExitDuration()}ms" } }; await DomHelpers.SetStyleAsync(refback.Current, styles, trigger : true); OnExiting?.Invoke(refback); }