Okay so I have encountered a frustrating issue with namespaces.
I am currently using
xmlns:local="clr-namespace:Company.ecommerce.WPF"
And it seems to be able to get everything else fine from here apart from one class.
public class StringToVisibilityConverter
This class is inside >WPF>ProductFeatures>FeatureSet.XAML.CS and I am trying to use,
<local:StringToVisibilityConverter x:Key="StringToVis"/>
inside my FeatureSet.xaml
however no matter how I try and set the namespace it comes back with:
The tag 'StringToVisibilityConverter' does not exist in XML namespace 'clr-
namespace:Company.ecommerce.WPF'.
Check namespace of you class
It should be same everywhere.
When we create a usercontrol in a folder, the namespace it gets created in is
parentnamespace.foldername.From the usercontrol UI and codebehind remove
.FolderNameand rebuild the project.It will work.OR
Include the new namespace with
mytag likeand use it like