(To telerik/others, This problem is probably issolated to just my machine, but I figured I would just put it here any way, to see if any one else has this problem. I should also point out that my application seems to be able to continually reproduce MANY bizarre anomalies, none of which occur if I create a blank app and test just that one feature...)
VS2010 Beta 2
Silverlight 4 Beta
Telerik Q1 2010
I'm having some issues binding my tabitem datacontext (In that it is not binding in some circumstances, and it is in others)
My application goes like this:
Data comes from RIA WCF, via domaindatasource called CashSale_Data defined in XAML in the CashSale_Page
Usercontrol MainPage.xaml, loads via code behind Page MainPatient_Page
MainPatient_Page has a tileview, the tileitem has a grid, the grid loads Page CashSale_Page
CashSalePage has a tabcontrol, one of the tabitems uses this: DataContext="{Binding Data, ElementName=CashSale_Data}"
Then various other controls (grids, textboxes etc.) load the data via xxxx={Binding yyyy}
The above, works fine.
Now. I take out one of the middle steps, and change it such that
Usercontrol MainPage.xaml, loads via code behind Page CashSale_Page
i.e. I removed the MainPatient_Page
And now everything does not bind. I can verify that the data is being loaded in to CashSale_Data, and if I manually bind one of my controls, e.g. a textboxes text={Binding Path=Data.receipt, ElementName=CashSale_Data} it works fine. The anomoly seems to be that the tileitem's datacontext is null-ing it self (Not to sure why...)
And as a final test, all I did was change the datacontext from the tileviewitem, to a stackpanel that housed all the tileview items' children, and now it works fine again.
VS2010 Beta 2
Silverlight 4 Beta
Telerik Q1 2010
VS2010 Beta 2
Silverlight 4 Beta
Telerik Q1 2010
I'm having some issues binding my tabitem datacontext (In that it is not binding in some circumstances, and it is in others)
My application goes like this:
Data comes from RIA WCF, via domaindatasource called CashSale_Data defined in XAML in the CashSale_Page
Usercontrol MainPage.xaml, loads via code behind Page MainPatient_Page
MainPatient_Page has a tileview, the tileitem has a grid, the grid loads Page CashSale_Page
CashSalePage has a tabcontrol, one of the tabitems uses this: DataContext="{Binding Data, ElementName=CashSale_Data}"
Then various other controls (grids, textboxes etc.) load the data via xxxx={Binding yyyy}
The above, works fine.
Now. I take out one of the middle steps, and change it such that
Usercontrol MainPage.xaml, loads via code behind Page CashSale_Page
i.e. I removed the MainPatient_Page
And now everything does not bind. I can verify that the data is being loaded in to CashSale_Data, and if I manually bind one of my controls, e.g. a textboxes text={Binding Path=Data.receipt, ElementName=CashSale_Data} it works fine. The anomoly seems to be that the tileitem's datacontext is null-ing it self (Not to sure why...)
And as a final test, all I did was change the datacontext from the tileviewitem, to a stackpanel that housed all the tileview items' children, and now it works fine again.
VS2010 Beta 2
Silverlight 4 Beta
Telerik Q1 2010