问题
HI all I am developing a calendar application for windows phone and I am decided to use WinRTXamlToolkit.Controls.Calendar,and I just opened a new project and add WinRTXamlToolkit.Controls.Calendar reference then create calendar in xaml,That is it ,It s build successfully, But when I loaded it throws a exception in XamlTypeInfo.g.cs as
"An exception of type 'System.IO.FileNotFoundException' occurred in WinRTXamlToolkit.Controls.Calendar.DLL but was not handled in user code
Additional information: Could not load file or assembly 'WinRTXamlToolkit, Version=1.7.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
If there is a handler for this exception, the program may be safely continued."
How can I overcome it friends...
回答1:
I just installed it and it worked "fine", but it is possible it has been fixed since 1.7.0.0. I just got the NuGet package version 1.7.2.0 from http://www.nuget.org/packages/winrtxamltoolkit.Controls.Calendar.WindowsPhone and put this in my page.
<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>
This is what I see:
来源:https://stackoverflow.com/questions/25604488/how-to-clear-break-point-error-on-windows-phone-using-winrtxamltoolkit-controls