This is a migrated thread and some comments may be shown as answers.

Programmatically highlight selected appointment in scheduleview?

0 Answers 69 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sammy
Top achievements
Rank 1
Sammy asked on 19 Aug 2012, 02:22 PM
Hi,
How do you highlight the selected appointment, just like if a user clicked on the appointment?  The problem is, I have multiple appointments showing in the sheduleview, but I need to highlight the selected appointment, so the user can easily see the appointment.

Currently, here is what I'm going:

if (scheduleview != null)
{ //set the appt
    scheduleview.SelectedAppointment = appt;
}
 
this.scheduleview.Dispatcher.BeginInvoke(() =>

     //scroll to the appt
    TimeSpan ts = appt.End-appt.Start;
    this.scheduleview.ScrollTimeRuler(ts, true);
});

// how do I highlight it?


Thanks!
Tags
ScheduleView
Asked by
Sammy
Top achievements
Rank 1
Share this question
or