0
我正在学习一个教程来实现一个值转换器。我收到错误此代码:错误Xaml命名空间
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>
我得到一个错误
“BooleanToVisibilityConverter” 这个名字并不在命名空间中存在 “使用:TestApp10”
该函数在App.xaml.cs文件中定义。
谢谢。
它解决了错误Thx。但代码仍然不工作(http://stackoverflow.com/questions/39333533/trouble-binding-xaml-uwp) – rur2641