public void Dispose()
 {
     this.ClearCache();
     _elements = null;
     _parent._childReferences.Remove(this);
     _parent = null;
 }
 public TrackSliderVisualStyleReference(TrackSliderVisualStyle parent)
 {
     _parent = parent;
     _parent._childReferences.Add(this);
     _elements = new Dictionary <int, Image>();
 }