public void Dispose()
 {
     panel.Children.Remove(expandButton.Item);
     expandButton.Dispose();
 }