Select to view content in your preferred language

Expression Blend Stack Trace Error when using toolbar from toolkit

716
0
05-13-2011 09:38 AM
AlainProulx
Occasional Contributor
Hey there,

I've got a VS 2010 Solution that runs fine, however, when I bring it into Expression Blend 4 I get a Stack Trace error.  I did some digging and I've got it narrowed down to one line.  As soon as I add a toolkit toolbar, I get the stack trace in Design view of the XAML.  Some of you might suggest references are missing but I double checked and they're all there.  Again, this runs fine in VS 2010 but not in Blend.

Here's the line that throws the error.  If I remove this line Blend is fine.

<esriToolkit:Toolbar MaxItemHeight="80" MaxItemWidth="80"/>

Here's the Full XAML.
<UserControl x:Class="SilverlightApplication1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
    xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
    xmlns:esriToolkit="clr-namespace:ESRI.ArcGIS.Client.Toolkit;assembly=ESRI.ArcGIS.Client.Toolkit"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <esri:Map x:Name="MyMap">
            <esri:Map.Layers>
                <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" 
                    Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />
            </esri:Map.Layers>
        </esri:Map>
        <Grid Height="110" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" >
                <esriToolkit:Toolbar MaxItemHeight="80" MaxItemWidth="80"/>
        </Grid>
    </Grid>
</UserControl>
0 Kudos
0 Replies