我正在尝试在我的项目中使用Windows Toolkit中的longlistselector,但我总是有这个错误。 我将命名空间添加到我的xaml并尝试多次限制visual studio。 当然,该工具包是与nuget包管理器一起安装的。
编辑:我在Windows Phone 8.1上以下是XAML代码:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:System="clr-namespace:System;assembly=System"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
mc:Ignorable="d">
<Grid Background="#00000000">
<Pivot Margin="0,81,0,0" Title="">
<PivotItem Header="Vidéos" Margin="19,0,19,-0.333">
<Grid Background="#00000000">
<phone:LongListSelector x:Name="VideosList" HorizontalAlignment="Left" Height="406" Margin="-1,43,0,-103" VerticalAlignment="Top" Width="363" ItemsSource="{Binding Videos}" SelectionChanged="PlayVideo" SelectionMode="Single" IsItemClickEnabled="False" Background="#00000000">
</phone:LongListSelector>
<TextBlock x:Name="Output" TextWrapping="Wrap" Margin="0,0,0,315" FontSize="36"/>
<Button Content="Clear Files" HorizontalAlignment="Left" Margin="10,415,0,0" VerticalAlignment="Top" Width="352" Click="Delete_File"/>
</Grid>
</PivotItem>
<PivotItem Header="Recherche" Foreground="White">
<Grid>
<Button VerticalAlignment="Top" Height="63" Width="33" HorizontalAlignment="Right" Content="Parcourir" Margin="0,18,130,0" Click="Button_Click"/>
</Grid>
</PivotItem>
</Pivot>
<TextBlock Height="92" TextWrapping="Wrap" VerticalAlignment="Top" Width="400" Text="EPIVIDEO" FontSize="32" TextAlignment="Center" FontFamily="Digital Desolation" Foreground="#FF00E8FF"/>
</Grid>
</Page>
有人能帮帮我吗?我不知道该怎么办?
答案 0 :(得分:3)
LongListSelector不适用于Windows Phone 8.1,您可以使用SemanticZoom。