Exemplo n.º 1
0
        /// <summary>
        /// Fired when the hide is complete
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CommentTipPopUp_TipHideComplete(object sender, EventArgs e)
        {
            TipPopUp popUp = (TipPopUp)sender;

            // Unregister the event
            popUp.TipHideComplete += CommentTipPopUp_TipHideComplete;

            // Remove the tip from the UI
            ui_contentRoot.Children.Remove(popUp);
        }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
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();
        }