Пример #1
0
        protected override void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            _isDisposed = true;

            if (disposing)
            {
                _backgroundTracker?.Dispose();
                _backgroundTracker     = null;
                _visualElementRenderer = null;
            }

            base.Dispose(disposing);
        }
Пример #2
0
 public ButtonRenderer()
 {
     AutoPackage            = false;
     _visualElementRenderer = this;
     _backgroundTracker     = new BorderBackgroundManager(this);
 }