コード例 #1
0
        public void OnMoreInfoClick(
            object sender,
            RoutedEventArgs args
            )
        {
            FrameworkElement element;

            //details = new EventDetailsWindow();
            //details.DataContext = ((FrameworkElement) sender).DataContext;

            element = (FrameworkElement)sender;
            TooltipServiceEx.HideLastTooltip();
        }
コード例 #2
0
        void OnTooltipOpened(object sender, RoutedEventArgs e)
        {
            m_timer = new DispatcherTimer
            {
                Interval = new TimeSpan(0, 0, 1)
            };
            m_timer.Tick += OnTimerTick;
            m_timeLeft    = HideToolTipTimeout;
            m_timer.Start();

            TooltipServiceEx.HideLastTooltip();
            TooltipServiceEx.LastTooltip = this;
        }
コード例 #3
0
ファイル: TimelineBand.cs プロジェクト: z-saffarpour/duscusys
        public void OnMoreInfoClick(
            object sender,
            RoutedEventArgs args
            )
        {
            EventDetailsWindow details;
            FrameworkElement   element;

            details             = new EventDetailsWindow();
            details.DataContext = ((FrameworkElement)sender).DataContext;

            element = (FrameworkElement)sender;

            TooltipServiceEx.HideLastTooltip();

#if SILVERLIGHT
            details.Show();
#else
            details.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            details.ShowDialog();
#endif
            TooltipServiceEx.HideLastTooltip();
        }