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
705
DataBinding to TimeLine
posted

Is it not possible to databind to the TimeLine /wo CodeBehind?  I am not having any success without manually setting the dataSource in the LoadedEvent.

I built a list an exposed it in my ViewModel but the databinding doesn't happen.  If I put a breakpoint in my Get accessor it never fires.  Is this expected?  Is this going to change?  Bit of a pain.

I setup my XAML basically just like the demo...

 <igtl:XamWebTimeline x:Name="timeline1" Loaded="timeline1_Loaded" >
                        <igtl:XamWebTimeline.Axis>
                            <igtl:DateTimeAxis ScrollPosition="0.55" ScrollScale=".45" />
                        </igtl:XamWebTimeline.Axis>
                        <igtl:XamWebTimeline.Series>
                            <igtl:DateTimeSeries
                 DataMapping="Time=Time;Title=Title;Details=Details"
                 DataSource="{Binding Path=MyProtocolScheduleList}"
                 Title="My ProtocolSchedule"/>
                        </igtl:XamWebTimeline.Series>
                    </igtl:XamWebTimeline>

Until I added the following to CodeBehind the DataSource is null:

private void timeline1_Loaded(object sender, RoutedEventArgs e)
        {
            var timeline = sender as XamWebTimeline;

            if (timeline != null)
            {
                timeline.Series[0].DataSource = ((MyEpmPageModel)Model).MyProtocolScheduleList;
                //timeline.Series[0].DataBind();
            }

        } 

 

thanks

jack

Parents Reply Children