Ejemplo n.º 1
0
        protected void InvalidateView(bool updateSelectionInfo = true)
        {
            // Avalonia InvalidateVisual raises no "OnPaint" events (HandlePaint raised on resize only).
            // So we use a render thread:

            //RedrawMainImage();
            // temperament measure slider move is slow
            Avalonia.Threading.Dispatcher.UIThread.InvokeAsync(RedrawMainImage);

            if (updateSelectionInfo)
            {
                _textBoxSelectionInfo.Text = _gridDrawer.FormatSelectionInfo();
            }
        }