为什么覆盖ListView转换不起作用?

时间:2014-02-11 00:27:22

标签: xaml listview windows-8 winrt-xaml windows-8.1

我想覆盖绑定到可观察集合的miy ListView控件的默认转换。我想在添加/删除项目或将其设置为全新时使用更多的fluit过渡。

我做错了什么?

<ListView 
    VerticalAlignment="Top" 
    ItemsSource="{Binding FilteredNewsDealsList}" 
    ItemTemplate="{StaticResource DealItemTemplateStretch}"
    ItemContainerStyle="{StaticResource ListViewItemStyleStretch}"
    Grid.Row="5" Padding="40,10,25,0" 
    IsSwipeEnabled="false"
    IsItemClickEnabled="True"
    ItemClick="itemGridView_ItemClick"
    ScrollViewer.VerticalScrollMode="Disabled"
    ScrollViewer.VerticalScrollBarVisibility="Disabled">
    <ListView.ItemContainerTransitions>
        <TransitionCollection>
            <EntranceThemeTransition/>
            <RepositionThemeTransition/>
        </TransitionCollection>
    </ListView.ItemContainerTransitions>
</ListView>

我也尝试在ItemsPanel中实现转换,但这也不起作用:

<ListView.ItemsPanel>
    <ItemsPanelTemplate>
        <WrapGrid Orientation="Horizontal">
            <WrapGrid.ChildrenTransitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                    <RepositionThemeTransition/>
                </TransitionCollection>
            </WrapGrid.ChildrenTransitions>
        </WrapGrid>
    </ItemsPanelTemplate>
</ListView.ItemsPanel>

谢谢和最诚挚的问候!

0 个答案:

没有答案