0
在我RoomView.xaml我:Windows手機綁定
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<ListBox ItemsSource="{Binding myStrings, Mode=TwoWay}"></ListBox>
</Grid>
在我的構造函數中我做:
var myStrings = new List<string>{"Usmaan","Carl","Andy","Saul"};
DataContext = myStrings;
但是什麼都沒有在頁面上吐出來的時候我加載應用程序。
任何人都可以看到我要去哪裏可怕的錯?
非常感謝。我現在遇到了使用Binding顯示圖像集合的麻煩。該問題的URL是:http://stackoverflow.com/questions/14843765/windows-phone-image-binding – Subby 2013-02-12 23:28:37