Hi
Can any one tell me What is Data Template in Silverlight and what is the purpose and where use .....?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Priya LingePosted Sep 26, 2011, 12:46 AM
DataTemplate Class :Describes the visual structure of a data object.
public class DataTemplate : FrameworkTemplate
You typically use a DataTemplate to specify the visual representation of your data. DataTemplate objects are particularly useful when you are binding an ItemsControl such as
a ListBox to an entire collection.
templateContent
Example :
Please attached file for more information about DataTemplete.
Smart LuckyPosted Sep 24, 2011, 5:03 AM
I have follow
http://msdn.microsoft.com/en-us/library/system.windows.datatemplate%28v=vs.95%29.aspx
this link
and in this link i am as it as writing program it show me error... how can i solve it...?
Error1'src' is an undeclared prefix. Line 11, position 14.
Satyapriya NayakPosted Sep 24, 2011, 4:48 AM
Please refer the below link
http://www.codeproject.com/KB/silverlight/HierarchicalDataTemplate.aspx
http://msdn.microsoft.com/en-us/library/system.windows.datatemplate%28v=vs.95%29.aspx
Thanks
If this post helps you mark it as answer