private void OnLayoutAction(object sender, EventArgs e)
{
// If not disposed then we still have a element reference
if (_ribbonGallery != null)
{
// Change in selected tab requires a retest of the control visibility
UpdateVisible(LastGallery);
UpdateEnabled(LastGallery);
}
}