I'm having an issue with a Universal Windows App and viewing a UserControl in Design view and Blend.
I have a BaseUserControl and some ValueConverters in the in the Shared Library. I reference the value converters in the App.xaml and the BaseUserControl is the Base for a specific UserControl I want to use Blend to help design.
I'm currently getting design-time errors in the Visual Studio XAML designer and in Blend:
The name "BaseUserControl" does not exist in the namespace "using:MyProject.Controls".
The designer view and Blend shows a box with the message:
Invalid Markup - Check the Error List for more information
I can build the project and run it and everything shows up and works fine.
How can I get the Shared Library code to be recognized in the Designer/XAML View and Blend?
UserControl is defined like so:
<controls:BaseUserControl
x:Class="MyProject.Controls.Menu.LeftNavigation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyProject.Controls.Menu"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:MyProject.Controls"
mc:Ignorable="d"
Background="#232323"
d:DesignHeight="800"
d:DesignWidth="110"
>
...
</controls:BaseUserControl>
The code behind is simply:
namespace MyProject.Controls.Menu
{
public sealed partial class LeftNavigation : BaseUserControl
{
public LeftNavigation()
{
this.InitializeComponent();
}
}
}