private void RaiseViewBoundsChanged()
{
if (this.mapResizeThrottler != null)
{
this.mapResizeThrottler.Cancel();
}
EventHandler<ViewBoundsEventArgs> viewBoundsChanged = this.ViewBoundsChanged;
if (viewBoundsChanged != null)
{
Rectangle2D viewBounds = this.ViewBounds;
if (!Rectangle2D.IsNullOrEmpty(viewBounds) && this.previousViewBounds != viewBounds)
{
viewBoundsChanged(this, new ViewBoundsEventArgs(this.previousViewBounds, viewBounds));
this.raisePropertyChanged("ViewBounds");
}
this.previousViewBounds = viewBounds;
this.cacheViewBounds = viewBounds;
}
}