WPF using Usercontrol in Listbox

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
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
 
Back
Top