0

大家好,我正在为 windows phone 开发日历应用程序,我决定使用 WinRTXamlToolkit.Controls.Calendar,我刚刚打开了一个新项目并添加 WinRTXamlToolkit.Controls.Calendar 引用,然后在 xaml 中创建日历,就是这样,它是构建成功,但是当我加载它时,它会在 XamlTypeInfo.g.cs 中引发异常

“在 WinRTXamlToolkit.Controls.Calendar.DLL 中发生了 'System.IO.FileNotFoundException' 类型的异常,但未在用户代码中处理

附加信息:无法加载文件或程序集“WinRTXamlToolkit,版本=1.7.0.0,Culture=neutral,PublicKeyToken=null”或其依赖项之一。该系统找不到指定的文件。

如果有这个异常的处理程序,程序可以安全地继续。”

怎么克服啊朋友...

4

1 回答 1

0

我刚刚安装了它,它工作“很好”,但它可能自 1.7.0.0 以来已被修复。我刚刚从http://www.nuget.org/packages/winrtxamltoolkit.Controls.Calendar.WindowsPhone获得了 NuGet 包版本 1.7.2.0并将其放在我的页面中。

<Page
    x:Class="App6.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App6"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="using:WinRTXamlToolkit.Controls"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <Viewbox>
            <controls:Calendar />
        </Viewbox>
    </Grid>
</Page>

这就是我所看到的:

在此处输入图像描述

于 2014-09-18T15:35:07.557 回答