protected override void Dispose(bool disposing)
{
if (disposing)
{
// Must unhook to prevent memory leaks
_ribbonSeparator.PropertyChanged -= new PropertyChangedEventHandler(OnSeparatorPropertyChanged);
// Remove association with definition
_ribbonSeparator.SeparatorView = null;
_ribbonSeparator = null;
}
base.Dispose(disposing);
}