私は、その中に画像のリストを持つクラスを持っています。Windows PhoneバインドリストボックスListbbxを使用
public class RSSClass
{
public string Title { get; set; }
public string Summary { get; set; }
public string PubDate { get; set; }
public List<ImageData> ImagePath { get; set; }
public class ImageData
{
public Uri ImageLocation
{
get;
set;
}
}
}
レディースXAML
<ListBox Name="lstRSS">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<StackPanel.Resources>
</StackPanel.Resources>
<TextBlock Text="{Binding Path=Title}"> </TextBlock>
<TextBlock Text="{Binding Path=PubDate}"></TextBlock>
<TextBlock Text="{Binding Path=Summary}"></TextBlock>
<ListBox x:Name="ImageListBox" ItemsSource="{Binding ImagePath}">
<DataTemplate>
<Image x:Name="image1" Source="{Binding}" MaxHeight="80" MaxWidth="120" Margin="0"></Image>
</DataTemplate>
</ListBox>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
内側リストボックス、ImageListBoxは、ウリの文字列値を結合して示します。 Imは内側のリストボックスimage1にある画像を何にバインドするのか分かりません。
ご迷惑をおかけして申し訳ございません。
よろしく ロス
Source = "{Binding ImageLocation}"を試しましたか? –
その仲間を試してみました、運がない、提案に感謝! – user746585
UriではなくImageLocationとして文字列を使用しようとしましたか? –