Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
Is there a way to get a selected DateTimeEntry?
posted

After clicking/selecting a DateTimeEntry,how to get it by code?

  • 17605
    Verified Answer
    posted

    Try using this code:

     <ig:XamTimeline x:Name="Timeline">
                <ig:XamTimeline.Axis>
                    <ig:DateTimeAxis SelectedTimeChanged="DateTimeAxis_SelectedTimeChanged" />
                </ig:XamTimeline.Axis>
    ...
    private void DateTimeAxis_SelectedTimeChanged(object sender, DateTimeChangedEventArgs e)
    {
    IList<EventEntry> entries = this.Timeline.GetEntries(e.NewTime);
    }