【发布时间】:2013-02-12 20:57:25
【问题描述】:
在我的 RoomView.xaml 中有:
<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 windows-phone