protected override void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing && Control != null) { ButtonElementManager.Dispose(this); BorderElementManager.Dispose(this); ImageElementManager.Dispose(this); } _isDisposed = true; base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (IsDisposed) { return; } if (Control != null) { Control.TouchUpInside -= OnButtonTouchUpInside; Control.TouchDown -= OnButtonTouchDown; BorderElementManager.Dispose(this); } IsDisposed = true; base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (_isDisposed) { return; } _isDisposed = true; if (disposing) { if (Control != null) { Control.TouchUpInside -= OnButtonTouchUpInside; Control.TouchDown -= OnButtonTouchDown; BorderElementManager.Dispose(this); _buttonLayoutManager?.Dispose(); _buttonLayoutManager = null; } } base.Dispose(disposing); }
public ImageButtonRenderer() : base() { ButtonElementManager.Init(this); BorderElementManager.Init(this); ImageElementManager.Init(this); }
public ButtonRenderer() { BorderElementManager.Init(this); _buttonLayoutManager = new ButtonLayoutManager(this); }
public RadioButtonRenderer() : base() { BorderElementManager.Init(this); }