Skip to main content

Microsoft Silverlight

Answered Question Silverlight 3 & Frame.NavigateRSS Feed

(0)

bastad
bastad

Member

Member

0 points

3 Posts

Silverlight 3 & Frame.Navigate

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
RogerGu

Participant

Participant

887 points

260 Posts

Re: Silverlight 3 & Frame.Navigate

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

RogerGu
RogerGu

Participant

Participant

887 points

260 Posts

Re: Silverlight 3 & Frame.Navigate

Well, that is not correct.. I just did a test. Can you post your xaml?

bastad
bastad

Member

Member

0 points

3 Posts

Re: Re: Silverlight 3 & Frame.Navigate

 <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}"
                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
                <navigation:Frame.UriMapper>....

RogerGu
RogerGu

Participant

Participant

887 points

260 Posts

Re: Re: Silverlight 3 & Frame.Navigate

Ok, sorry, I should have also said code behind. Can we see that as well?

bastad
bastad

Member

Member

0 points

3 Posts

Answered Question

Re: Re: Re: Silverlight 3 & Frame.Navigate

 <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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities