Skip to main content
Home Forums General Silverlight Installation and Setup Silverlight 3 & Frame.Navigate
5 replies. Latest Post by bastad on November 3, 2009.
(0)
bastad
Member
0 points
3 Posts
10-30-2009 3:22 AM |
Hello!
I add to mainpage Navigation Frame, from System.Windows.Control.Navigation.dll. When I try to compile my project , catch exception
ValidateXaml error:
System.TypeLoadException: Not implemented "Navigate" "System.Windows.Controls.Frame"
"System.Windows.Controls.Navigation, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". в System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) в System.Reflection.Assembly.GetType(String name) в MS.Internal.Xaml.Schema.ClrNamespace.SearchAssembliesForShortName(String shortName) в MS.Internal.Xaml.Schema.ClrNamespace.TryGetXamlType(String xamlName, Assembly localAssembly, XamlType& xamlType) в MS.Internal.Xaml.Schema.ClrNamespace.GetXamlType(String typeName, XamlTypeSearchSettings searchSettings, Assembly localAssembly, Boolean throwOnError) в MS.Internal.Xaml.XamlContext.GetXamlType(String prefix, String name, XamlTypeSearchSettings searchSettings, XamlNamespace& xamlNs, Boolean throwOnError) в MS.Internal.Xaml.Parser.XamlScanner.ReadObjectElement(XamlName name, Boolean isEmptyTag) в MS.Internal.Xaml.Parser.XamlScanner.ReadElement() в MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead() в MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext() в MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__0.MoveNext() в MS.Internal.Xaml.TextReaderEnumerator.MoveNext() в MS.Internal.Xaml.XamlTextReader.Read() в MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemblies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow) в Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute() в Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute() в Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute() в Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) simpleTest
What is a reason?
sorry for bad english
RogerGu
Participant
887 points
260 Posts
10-30-2009 11:34 AM |
I believe you are not inheriting from Navigate:
correction:
<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
I believe you need to implement Navigated and NavigationFailed
Twitter
10-30-2009 11:41 AM |
Well, that is not correct.. I just did a test. Can you post your xaml?
11-02-2009 12:31 AM |
<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed"> <navigation:Frame.UriMapper>....
11-02-2009 10:25 AM |
Ok, sorry, I should have also said code behind. Can we see that as well?
11-03-2009 12:43 AM |
<UserControl x:Class="navigTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}"> <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">
maybe a reason Russian Visual Studio 2008 standart edition. Now I use web developer expression English version on other PC and everything work fine.