private void OnDetailRequested(DetailRequestedEventArgs e)
 {
     if (DetailRequested != null)
     {
         DetailRequested(this, e);
     }
 }
 void TlDetailRequested(object sender, DetailRequestedEventArgs e)
 {
     if (IsSingleSelect)
     {
         OnDetailRequested(new DetailRequestedEventArgs
         {
             Data = ((TimeLine)sender).ItemsSource.DataContext
         });
     }
     else
     {
         OnDetailRequested(new DetailRequestedEventArgs
         {
             Data = from tl in PlotCanvas.Children
                    where tl is TimeLine && ((TimeLine)tl).ItemsSource.IsHighlighted
                    select((TimeLine)tl).ItemsSource.DataContext
         });
     }
 }
Beispiel #3
0
 void tl_DetailRequested(object sender, DetailRequestedEventArgs e)
 {
     MessageBox.Show("'DetailRequested' event raised by TimeLine");
 }