I am following a tutorial to implement a value converter. I receive an error for this code:
public class BooleanToVisibilityConverter : IValueConverter
{
//
}
<Application
x:Class="TestApp10.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:TestApp10"
RequestedTheme="Light">
<Application.Resources>
<local:BooleanToVisibilityConverter x:Key="TrueToVisibleConverter" />
<local:BooleanToVisibilityConverter x:Key="FalseToVisibleConverter" IsReversed="True" />
</Application.Resources>
I get an error
The name "BooleanToVisibilityConverter" does not exist in the namespace "using:TestApp10"
The function is defined in the App.xaml.cs file.
Thank you.