0

我想在我的Windows Phone 8.1应用程序中使用一些图表。因此,按照教程,我完成了以下操作:

  1. 我已经安装了以下软件包:

    在此处输入图像描述

  2. 我有以下内容XAML

    <Page xmlns:Charting="using:WinRTXamlToolkit.Controls.DataVisualization.Charting" 
    x:Class="MST_61462004_E3T02.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MST_61462004_E3T02"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    
    <Grid>
    
        <Charting:Chart x:Name="PieChart"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Top"
                        Margin="100,100,0,0"
                        Width="400"
                        Height="400">
            <Charting:PieSeries Margin="0"
                                IndependentValuePath="Name"
                                DependentValuePath="Amount"
                                IsSelectionEnabled="True" />
        </Charting:Chart>
    
    
    </Grid>
    

但我收到以下错误:

错误 1 ​​无法加载文件或程序集“WinRTXamlToolkit,版本=1.8.1.0,Culture=neutral,PublicKeyToken=null”或其依赖项之一。该系统找不到指定的文件。

我正在使用windows runtime空白项目。

谁能指出导致错误的原因?

4

1 回答 1

1

根据症状 - 很可能是网络问题或 nuget/vs 错误导致包中缺少文件的问题。

尝试重现问题总是有帮助的。

于 2015-05-29T21:11:42.553 回答