WPF using Usercontrol in Listbox

L

Lloyd Sheen

I sent a previous post about binding to a usercontrol in a listbox /
listview.

I had assumed that I could use a usercontrol in the itemtemplate of a
listbox but NO No NO (apologies to Amy Winehouse).

When I attempt to use the usercontrol I get a compile error:

Error 10 The tag 'RFolder' does not exist in XML namespace
'clr-namespace:Media_Player;assembly=MediaPlayer'. Line '1' Position '143'.
C:\Visual Studio Projects\Media Player\Media
Player\Windows\ArtistBrowswer.xaml 42 17 Media Player

Now intellisence guides to add the control and if I place it anywhere else
in the window there is no problem.

Can we use UserControls in this fashion?
Is WPF not the hardest and least developer friendly framework I have ever
seen??

I have googled and Binged and there is nothing out there to answer this
question that I can find.

CONFUSED
Thanks
Lloyd SHeen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top