Ejemplo n.º 1
0
        /// <summary>
        /// Hides the comment scroll tip if needed.
        /// </summary>
        public void HideCommentScrollTipIfNeeded()
        {
            // If we don't have one return.
            if(m_commentTipPopUp == null)
            {
                return;
            }

            // Tell it to hide and set it to null
            m_commentTipPopUp.HideTip();
            m_commentTipPopUp = null;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Shows the comment scroll tip if needed
        /// </summary>
        public void ShowCommentScrollTipIfNeeded()
        {
            if(!App.BaconMan.UiSettingsMan.FlipView_ShowCommentScrollTip)
            {
                return;
            }

            // Never show it again.
            App.BaconMan.UiSettingsMan.FlipView_ShowCommentScrollTip = false;

            // Create the tip UI, add it to the UI and show it.
            m_commentTipPopUp = new TipPopUp();
            m_commentTipPopUp.Margin = new Thickness(0, 0, 0, 60);
            m_commentTipPopUp.VerticalAlignment = VerticalAlignment.Bottom;
            m_commentTipPopUp.TipHideComplete += CommentTipPopUp_TipHideComplete;
            ui_contentRoot.Children.Add(m_commentTipPopUp);
            m_commentTipPopUp.ShowTip();
        }