ListBox内にある2つの列のグリッドを実行しています。その後、私はDataBindを2つの列を縦に繰り返すことができます。グリッド内のグリッド付きのデータがありません
これまでのところ、以下のコードはWP7エミュレータでは何も表示していません。
<ListBox Background="Yellow" ItemsSource="{Binding}" Height="100" Margin="0,0,8,0">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Height="100">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="200" />
</Grid.ColumnDefinitions>
<TextBlock Text="Channels" HorizontalAlignment="Stretch" Foreground="Black" Grid.Column="0" />
<TextBlock Text="Antenna" HorizontalAlignment="Stretch" Foreground="Black" Grid.Column="1"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
私を助けてください。
どのようにItemsSourceを設定していますか?編集:あなたのDataContext全体はItemssourceですか? –
商品がまだありません。これが修正された後に設定します。 – darking050
表示するアイテムがなくなるまで何も表示されません:) –