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

Appointments not showing

1 Answer 45 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 15 Jun 2011, 09:40 AM
I am trying out the RadScheduleView. I have a simple usercontrol:

<Grid x:Name="LayoutRoot" Background="White">
    <t:RadScheduleView x:Name="s" Grid.Row="0">
        <t:RadScheduleView.ViewDefinitions>
            <t:MonthViewDefinition/>
            <t:WeekViewDefinition/>
            <t:DayViewDefinition/>
            <t:TimelineViewDefinition/>
        </t:RadScheduleView.ViewDefinitions>
    </t:RadScheduleView>
</Grid>

And am setting the AppointmentsSource in the code behind:

public partial class Test : UserControl {
    public Test() {
        InitializeComponent();
 
        s.AppointmentsSource = new[] {
                new Appointment {
                    Start = DateTime.Now,
                    End = DateTime.Now.AddHours(2),
                    Body = "TESTING",
                    Location = "Blah",
                    Url = "http://www.google.co.uk/"
                }
            };
    }
}

The ScheduleView displays, but I can't see the appointment.

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 15 Jun 2011, 04:55 PM
OK, I hadn't set the AppointmentsSource:

s.AppointmentsSource = Appointments;
Tags
ScheduleView
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or