Apricot.Balloon.OnIsVisibleChanged C# (CSharp) Method

OnIsVisibleChanged() private method

private OnIsVisibleChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender object
e System.Windows.DependencyPropertyChangedEventArgs
return void
        private void OnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (!(bool)e.NewValue)
            {
                this.lastRenderingTime = TimeSpan.Zero;
                this.frameRateList.Clear();
                this.historyPoint = null;
                this.nextHistoryPoint = null;
                this.isReady = false;
                this.isPinned = false;
                this.closeIsHover = false;
                this.backIsHover = false;
                this.upIsHover = false;
                this.downIsHover = false;
                this.attachmentsAreHover = false;
                this.titleIsHover = false;
                this.subtitleIsHover = false;
                this.imageIsHover = false;
                this.authorIsHover = false;
                this.hoverEmbeddedIndex = null;
                this.hoverTagIndex = null;
                this.messageIsScrollable = false;
                this.enableFilter = false;
                this.minScore = 0;
                this.maxScore = 0;
                this.thresholdQueue.Clear();
                this.thresholdScore = 0;
                this.previousThresholdScore = 0;
                this.nextThresholdScore = 0;
                this.thresholdScoreStep = 0;
                this.isReversed = false;
                this.scrollQueue.Clear();
                this.selectedPositionQueue.Clear();
                this.sourceScrollPosition = 0;
                this.targetScrollPosition = 0;
                this.scrollIndexStep = 0;
                this.hoverIndex = null;
                this.selectedIndex = null;
                this.selectedPosition = null;
                this.sourceScaleX = this.sourceScaleY = 0;
                this.targetScaleX = this.targetScaleY = 0;
                this.popupStep = 0;
                this.resizeStep = 0;
                this.scrollStep = null;
                this.filterStep = null;
                this.liftStep = null;
                this.closeBlinkStep = 0;
                this.backBlinkStep = 0;
                this.upBlinkStep = 0;
                this.downBlinkStep = 0;
                this.imageBlinkStep = 0;
                this.titleScrollStep = null;
                this.subtitleScrollStep = null;
                this.authorScrollStep = null;
                this.tagScrollStepDictionary.Clear();
                this.titleIsScrollable = false;
                this.subtitleIsScrollable = false;
                this.authorIsScrollable = false;
                this.tagIsScrollableHashSet.Clear();
                this.counterScrollStep = null;
                this.inspectorFadeStep = null;
                this.imageLoadStep = 0;
                this.imageSlideStep = 0;
                this.imagePopupStep = 0;
                this.sourceOpacity = 0;
                this.targetOpacity = 0;
                this.inspectorEntry = null;
                this.previousInspectorEntry = null;
                this.nextInspectorEntry = null;
                this.circulationQueue.Clear();
                this.previousCirculationIndex = 0;
                this.nextCirculationIndex = 0;
                this.circulationStep = 0;
                this.mouseDownPosition = null;
                this.imageUriQueue.Clear();
                this.imageUri = null;
                this.cachedBitmapImage = null;
                this.messageBuffer = new StringBuilder();
                this.targetMessageLength = 0;
                this.randomMessageLength = 0;
                this.inlineList.Clear();
                this.embedColorStepDictionary.Clear();
                this.embedScrollStepDictionary.Clear();
                this.embedIsScrollableHashSet.Clear();
                this.attachmentFadeStepDictionary.Clear();
                this.attachmentImageLoadingStepDictionary.Clear();
                this.attachmentImageSlideStepDictionary.Clear();
                this.attachmentImagePopupStepDictionary.Clear();
                this.attachmentHighlightStepDictionary.Clear();
                this.attachmentEnableStepDictionary.Clear();
                this.attachmentFilterStepDictionary.Clear();
                this.attachmentScrollStepDictionary.Clear();
                this.attachmentIsScrollableHashSet.Clear();
                this.attachmentImageDictionary.Clear();
                this.cachedInlineImageDictionary.Clear();
                this.cachedAttachmentThumbnailImageDictionary.Clear();
                this.cachedAttachmentTextImageDictionary.Clear();
                this.cachedCounterCanvas = null;
                this.cachedTitleImageDictionary.Clear();
                this.cachedSubtitleImageDictionary.Clear();
                this.cachedAuthorImageDictionary.Clear();
                this.cachedTagImageDictionary.Clear();
                this.imageDictionary.Clear();
                this.imageUriHashSet.Clear();
                this.Width = this.Height = 0;
                this.Canvas.Width = this.Canvas.Height = Double.NaN;
                this.Canvas.Opacity = 0;
                this.ScaleTransform.ScaleX = this.ScaleTransform.ScaleY = 0;
                this.TranslateTransform.X = this.TranslateTransform.Y = 0;
                this.OuterPath.Width = this.OuterPath.Height = Double.NaN;
                this.OuterPath.Data = null;
                this.InnerPath.Width = this.InnerPath.Height = Double.NaN;
                this.InnerPath.Data = null;
                this.OverlayPath.Width = this.OverlayPath.Height = Double.NaN;
                this.OverlayPath.Data = null;
                this.OverlayPath.Fill = null;
                this.HighlightPath.Width = this.HighlightPath.Height = Double.NaN;
                this.HighlightPath.Data = null;
                this.HighlightLinePath.Width = this.HighlightLinePath.Height = Double.NaN;
                this.HighlightLinePath.Data = null;
                this.ScrollCanvas.Width = this.ScrollCanvas.Height = Double.NaN;
                this.MessageCanvas.Width = this.MessageCanvas.Height = Double.NaN;
                this.MessageCanvas.Children.Clear();
                this.InspectorCanvas.Visibility = Visibility.Collapsed;
                this.InspectorCanvas.Width = this.InspectorCanvas.Height = Double.NaN;
                this.InspectorCanvas.Background = null;
                this.InspectorCanvas.Opacity = 0;
                this.InspectorCanvas.Children.Clear();
                this.FilterImage.Visibility = Visibility.Collapsed;
                this.FilterImage.Width = this.FilterImage.Height = Double.NaN;
                this.FilterImage.Source = null;
                this.FilterImage.Opacity = 0;
                this.ScrollImage.Visibility = Visibility.Collapsed;
                this.ScrollImage.Width = this.ScrollImage.Height = Double.NaN;
                this.ScrollImage.Source = null;
                this.ScrollImage.Opacity = 0;
                this.CloseImage.Width = this.CloseImage.Height = Double.NaN;
                this.CloseImage.Source = null;
                this.BackImage.Width = this.BackImage.Height = Double.NaN;
                this.BackImage.Source = null;
                this.UpImage.Visibility = Visibility.Collapsed;
                this.UpImage.Width = this.UpImage.Height = Double.NaN;
                this.UpImage.Source = null;
                this.UpImage.Opacity = 0;
                this.DownImage.Visibility = Visibility.Collapsed;
                this.DownImage.Width = this.DownImage.Height = Double.NaN;
                this.DownImage.Source = null;
                this.DownImage.Opacity = 0;
                this.InspectorImage.Visibility = Visibility.Collapsed;
                this.InspectorImage.Width = this.InspectorImage.Height = Double.NaN;
                this.InspectorImage.Source = null;
                this.InspectorImage.Opacity = 0;
                this.waitTimer.Stop();
                this.messageTypeTimer.Stop();
                this.switchTimer.Stop();
            }
        }