private void ZoomToFocus()
 {
     if (!LayoutViewModel.ZoomToFocus)
     {
         return;
     }
     if (
         ServiceProvider.Settings.SelectedBitmap.FileItem
         .FileInfo != null &&
         ServiceProvider.Settings.SelectedBitmap.FileItem
         .FileInfo.FocusPoints.Count > 0)
     {
         ZoomAndPanControl.SnapTo(new Point(ServiceProvider.Settings.SelectedBitmap.FileItem.FileInfo.FocusPoints[0].X + ServiceProvider.Settings.SelectedBitmap.FileItem.FileInfo.FocusPoints[0].Width / 2,
                                            ServiceProvider.Settings.SelectedBitmap.FileItem.FileInfo.FocusPoints[0].Y + ServiceProvider.Settings.SelectedBitmap.FileItem.FileInfo.FocusPoints[0].Height / 2));
     }
 }