LayerPanel - cannot create instance

Editor
Jul 7, 2010 at 2:51 PM

Hi,

I tried to use the digitizer and the layerPanel, but when I finished my xaml I get an error for the layerPanel 

"Error    1    Cannot create an instance of "AccordionLayerPanel".    C:\VS2010\DE_EKDGIS\EKDGIS\EKDGIS\MainPage.xaml    10    5    EKDGIS"

 

XAML:

<UserControl x:Class="EKDGIS.MainPage"    
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:digi="clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.Digitizer"
    xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl" 
    xmlns:lp="clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.LayerPanel">
<Grid x:Name="LayoutRoot">
    <m:Map x:Name="map" CredentialsProvider="{StaticResource MyCredentials}" />
    <digi:Digitizer x:Name="digitizer" MapName="map" Margin="10" MaxWidth="400" MaxHeight="300" VerticalAlignment="Center" HorizontalAlignment="Right" />
    <lp:AccordionLayerPanel Name="layerPanel" MapName="map" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="4,4,4,4"/>
</Grid>
</UserControl>


What is wrong ? I can´t go on without the panel :-(
So would you please help me?
regards, Thomas

Editor
Jul 7, 2010 at 2:55 PM

sorry ! I only had to use the PersistedState reference !!!

regards