How to get which Entry Title is Clicked?
Best Regards.
The C# code can be something like:
public partial class MainWindow : Window
{
public MainWindow()
InitializeComponent();
Style style = new Style(typeof(EventTitle));
style.Setters.Add(new EventSetter(EventTitle.MouseLeftButtonDownEvent, new MouseButtonEventHandler(title_MouseLeftButtonDown)));
this.Timeline.Series[0].EventTitleStyle = style;
}
private void title_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
How to code this just by c# or vb.net?
Hi,
Currently we don’t have custom events for that, but you can you this code:
<Grid>
<Grid.Resources>
<Style x:Key="EventTitleStyle" TargetType="ig:EventTitle">
<EventSetter Event="MouseLeftButtonDown" Handler="title_MouseLeftButtonDown" />
</Style>
</Grid.Resources>
<ig:XamTimeline>
<ig:XamTimeline.Series>
<ig:NumericTimeSeries EventTitleStyle="{StaticResource EventTitleStyle}">
<ig:NumericTimeEntry Time="1" Title="Title" />
</ig:NumericTimeSeries>
</ig:XamTimeline.Series>
</ig:XamTimeline>
</Grid>
…
void title_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)