// Dispose of resources. public void Dispose() { _textRenderTarget.Dispose(); _textSceneColorBrush.Dispose(); _textFormatTitle.Dispose(); _textFormatHorizontal.Dispose(); _textFormatVertical.Dispose(); _ambientLight.Dispose(); _barOutlineLight.Dispose(); _barLight.Dispose(); }