0
votes

My SolutionName: TestBA My AssemblyName: TestBA

Default namespace: Examples.Bootstrapper

In TestBA assemble I have Converters folder:

namespace Examples.Bootstrapper.Converters
{
    class PercentToPixelsConverter : IValueConverter
(...)

I trying to use:

xmlns:c="clr-namespace:Examples.Bootstrapper.Converters;assembly=TestBA"

(...)

<c:PercentToPixelsConverter x:Key="MyName" />

I get an error:

The tag 'PercentToPixelsConverter' does not exist in XML namespace 'clr-namespace:Converters;assembly=TestBA'.

2
try to remove ;assembly=TestBA if the namespace is from the same project/assembly.har07

2 Answers

1
votes

You will need to make your class public:

public class PercentToPixelsConverter

0
votes

You don't have to specify assembly name if the namespace is from the same project or assembly :

xmlns:c="clr-namespace:Examples.Bootstrapper.Converters"