【问题标题】:set panoramaItem list background image设置panoramaItem列表背景图片
【发布时间】:2011-10-31 19:08:42
【问题描述】:

如何为全景项目的 ListBox 设置背景图片?

我有这个全景项目:

 <controls:PanoramaItem Header="Shopping list"  >

<ListBox x:Name="List"  ItemsSource="{Binding rList}"  ItemTemplate="{StaticResource ListViewModelTemplate}"  >
</ListBox>

</controls:PanoramaItem>

并希望有一张图片作为此列表项的背景(笔记本图片)。我该怎么做?

【问题讨论】:

    标签: c# silverlight windows-phone-7 panorama-control


    【解决方案1】:

    你只需要像这样设置ListBox'sBackground

                <ListBox x:Name="List" ItemsSource="{Binding rList}" ItemTemplate="{StaticResource ListViewModelTemplate}"> 
                    <ListBox.Background>
                        <ImageBrush Stretch="Fill" ImageSource="PanoramaBackground.png"/>
                    </ListBox.Background>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 2020-11-21
      • 2015-05-09
      • 2012-03-07
      • 2020-07-03
      • 2011-09-01
      相关资源
      最近更新 更多