public void SetRenderer(ToggleSwitchRendererBase renderer) { renderer.SetToggleSwitch(this); _renderer = renderer; if (_renderer != null) { Refresh(); } }