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
145
XamTimeline Databinding in XAML
posted

Are there any examples of databinding to the XamTimeline in XAML?

 

I am using MVVM and don't really want to be putting code in the code behind page as in the example at http://help.infragistics.com/Help/NetAdvantage/WPFDV/2011.2/CLR4.0/html/SL_DV_xamWebTimeline_Binding_to_Data_with_xamTimeline.html

 

I have had a go and go to:

 

        <ig:XamTimeline HorizontalAlignment="Left" Margin="25,22,0,0" Name="xamTimeline" VerticalAlignment="Top">

            <ig:XamTimeline.Series >

                <ig:NumericTimeSeries DataContext="{Binding Path=Collection}" DataMapping="Time=Time;Duration=Duration;Title=Title;Details=Details"/>

            </ig:XamTimeline.Series>

        </ig:XamTimeline>

but I don't get any data displayed.

 

Parents
No Data
Reply
  • 145
    Verified Answer
    posted

    I found my error, the working example is:

            <ig:XamTimeline HorizontalAlignment="Left" Margin="25,22,0,0" Name="xamTimeline" VerticalAlignment="Top"  Grid.Row="1">

                <ig:XamTimeline.Series D >

                    <ig:NumericTimeSeries Title="Data Binding" DataSource="{Binding Collection}" DataMapping="Time=Time;Duration=Duration;Title=Title;Details=Details"/>

                </ig:XamTimeline.Series>

            </ig:XamTimeline>

    I had the DataSource="{Binding Collection}"  wrong :-(.

Children