예제 #1
0
        private void ShowPopup()
        {
            if (tip != null && tip.IsOpen)
            {
                tip.FastClose();
            }

            tip       = new BalloonTip(this);
            tip.Style = BalloonTipStyle;
            tip.Owner = Window.GetWindow(this);

            tip.SetBinding(Window.ContentProperty, new Binding()
            {
                Source = this,
                Path   = new PropertyPath(QuoteProperty)
            });

            tip.Closed += (sender, e) =>
            {
                IsChecked = false;
                tip       = null;
            };

            tip.FastShow();
        }