Reputation: 1987
The XAML designer either complains that the control isn't in the namespace or that the control can be placed in a UIElement Collection.
The control is defined as such:
namespace OdinSyncManager.Controls
{
public partial class ServiceListItem: UserControl
{
public ServiceListItem()
{
InitializeComponent();
}
}
}
The XAML has the following code (I've only included the head of the file up to the control):
<...
xmlns:Control="clr-namespace:OdinSyncManager.Controls"
mc:Ignorable="d"
Title="MainWindow">
<DockPanel LastChildFill="True" Margin="0,0,14,14" Background="#FFFF6D6D">
<Control:ServiceListItem/>
<...>
I'm not sure what's missing?
Upvotes: 0
Views: 161
Reputation: 1020
Make sure you added a WPF UserControl to your project, not a winform
Upvotes: 1