Exemplo n.º 1
0
        private void DispatchInvalidateMeasure()
        {
            if (_rootVisual is null)
            {
                return;
            }

            if (this.Log().IsEnabled(Uno.Foundation.Logging.LogLevel.Debug))
            {
                var sw = Stopwatch.StartNew();
                _rootVisual.Measure(Bounds.Size);
                _rootVisual.Arrange(Bounds);
                sw.Stop();

                this.Log().Debug($"DispatchInvalidateMeasure: {sw.Elapsed}");
            }
            else
            {
                _rootVisual.Measure(Bounds.Size);
                _rootVisual.Arrange(Bounds);
            }
        }
Exemplo n.º 2
0
        private void DispatchInvalidateMeasure()
        {
            if (_rootVisual != null)
            {
                var sw = Stopwatch.StartNew();
                _rootVisual.Measure(Bounds.Size);
                _rootVisual.Arrange(Bounds);
                sw.Stop();

                if (this.Log().IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
                {
                    this.Log().Debug($"DispatchInvalidateMeasure: {sw.Elapsed}");
                }
            }
        }