大家好我得到了一些幫助,試圖建立一箇中繼器,當我測試了他的代碼,它仍然不工作,我已經從MSDN試圖代碼,以便任何人可以告訴我工作的代碼,以便我可以提供一個使用一箇中繼器來顯示什麼是什麼,C#WP7的Silverlight復讀不工作,
什麼,我已經是一個XML飼料,http://spiked.appware.co.uk/xml/comments/get/5/
然後這些加載到一個變量的對象內
comment[] Comments.comments
public class comment
{
public string text = "";
public string device = "";
public string name = "";
public string id = "";
}
我想成爲能夠foreach comments.comments並通過它,但一箇中繼器,使得XAML重複碼塊內部,repeter並使用{結合文本}作爲文本框的值進行深度代碼檢查第一個答案
下面Data binding no error but the binding is not outputting
鏈路
var comments = new Comments();
var threeComments = new List<Comment>
{
new Comment("t1", "d1", "n1", "i1"),
new Comment("t2", "d2", "n2", "i3"),
new Comment("t3", "d3", "n3", "i3")
};
comments.comments = threeComments.ToArray();
commentsLooper.ItemsSource = new CommentsDataItems(comments);
可供下載一個完整的工作示例我不認爲這個問題可以歸結一個位可以嗎?您是否有需要某些信息的特定功能來幫助您編寫解決方案? – 2010-11-23 10:04:34
爲您更新。 – Barkermn01 2010-11-23 10:14:06