@@ -142,7 +142,7 @@ public OxyColor ActualFillColor
142142 /// <summary>
143143 /// Gets the list of <see cref="HistogramItem" /> that should be rendered.
144144 /// </summary>
145- /// <value>A list of <see cref="RectangleItem " />.</value>
145+ /// <value>A list of <see cref="HistogramItem " />.</value>
146146 protected List < HistogramItem > ActualItems => this . ItemsSource != null ? this . actualItems : this . Items ;
147147
148148 /// <summary>
@@ -211,7 +211,7 @@ public override TrackerHitResult GetNearestPoint(ScreenPoint point, bool interpo
211211
212212 if ( this . ActualItems != null )
213213 {
214- // iterate through the DataRects and return the first one that contains the point
214+ // iterate through the HistogramItems and return the first one that contains the point
215215 foreach ( var item in this . ActualItems )
216216 {
217217 if ( item . Contains ( p ) )
@@ -536,20 +536,20 @@ private void UpdateActualItems()
536536 return ;
537537 }
538538
539- var sourceAsListOfDataRects = this . ItemsSource as List < HistogramItem > ;
540- if ( sourceAsListOfDataRects != null )
539+ var sourceAsListOfHistogramItems = this . ItemsSource as List < HistogramItem > ;
540+ if ( sourceAsListOfHistogramItems != null )
541541 {
542- this . actualItems = sourceAsListOfDataRects ;
542+ this . actualItems = sourceAsListOfHistogramItems ;
543543 this . ownsActualItems = false ;
544544 return ;
545545 }
546546
547547 this . ClearActualItems ( ) ;
548548
549- var sourceAsEnumerableDataRects = this . ItemsSource as IEnumerable < HistogramItem > ;
550- if ( sourceAsEnumerableDataRects != null )
549+ var sourceAsEnumerableHistogramItems = this . ItemsSource as IEnumerable < HistogramItem > ;
550+ if ( sourceAsEnumerableHistogramItems != null )
551551 {
552- this . actualItems . AddRange ( sourceAsEnumerableDataRects ) ;
552+ this . actualItems . AddRange ( sourceAsEnumerableHistogramItems ) ;
553553 }
554554 }
555555 }
0 commit comments