private void OnWindowActiveChanged(object sender, EventArgs e)
{
if (_kryptonForm != null)
{
// When integrated into composition we need to repaint whenever the
// owning form changes active status, as we are drawing the caption
if (_kryptonForm.ApplyCustomChrome && _kryptonForm.ApplyComposition)
PerformNeedPaint(true);
}
}