2014-12-20 28 views
0

我想在我的項目中使用Windows Toolkit的longlistselector,但我總是有這個錯誤。 我將命名空間添加到我的xaml中,並嘗試多次限制visual studio。 當然,該工具包與nuget包管理器一起安裝。LongListSelector不存在於命名空間clr-namespace中:Microsoft.Phone.Controls; assembly = Microsoft.Phone.Controls.Toolkit

編輯:我在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

我實現了WP8.1 WinRT的LongListSelector,因爲它缺少那裏,請參閱http://mytoolkit.codeplex.com/wikipage?title=LongListSelector –

+0

謝謝你的鏈接,但saravanan發佈的答案對我更好。 –

回答

相關問題