2
Vote

Silverlight 5 issue

description

EDIT: Oh please disregard it, it looks like something was messed up in my build system so somehow I got both dlls loaded. Please delete this issue if this is possible.

/// ------------

SL4PopupMenu stopped working for me when I upgraded to SL5.
I've even rebuilt SL4PM for SL5, but I still get the following error:
Error 1 The tag 'PopupMenuItem' does not exist in XML namespace 'clr-namespace:SL4PopupMenu;assembly=SL4PopupMenu'. C:\test\SilverlightApplication3\SilverlightControl1.xaml 8 10 SilverlightApplication3

Any ideas? Here's the offending XAML:

<my:PopupMenu
x:Class="Slex.Viewers.LineChart.LineChartPopupMenu"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:SL4PopupMenu;assembly=SL4PopupMenu" 
xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows">
<Controls:ListBox>
    <my:PopupMenuItem Header="Markers">
        <my:PopupMenu>
            <TextBox></TextBox>
        </my:PopupMenu>
    </my:PopupMenuItem>
</Controls:ListBox>
</my:PopupMenu>

comments

benparsons wrote Jan 27, 2012 at 1:56 PM

I'm having the same issue, but I'm only loading the dll once I'm sure. What do you mean by "both dlls"?

jmpirelli wrote Oct 23, 2012 at 10:42 AM

Get the source code, open in VS, set the target to SL5, fix the toolkit references to V5 and rebuild.

I uploaded the result to https://skydrive.live.com/redir?resid=1E771DCD1C382F9C!590 if anyone is interested.