public void OnMoreInfoClick( object sender, RoutedEventArgs args ) { FrameworkElement element; //details = new EventDetailsWindow(); //details.DataContext = ((FrameworkElement) sender).DataContext; element = (FrameworkElement)sender; TooltipServiceEx.HideLastTooltip(); }
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; }
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(); }