Arti Arti - 4 months ago 40
C# Question

Invalid markup for wpf UserControl xaml

Today when i launch my project, all my views that contains

UserControl
have:
Invalid Markup
error.

<UserControl x:Class="ProjectName.View.LeftMenuControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:RaceFlightConfigurator.View"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:UserControl="clr-namespace:ProjectName.View"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl:ConnectControl Margin="4"></UserControl:ConnectControl>

</UserControl>


I tried to
Rebuild solution
, remove
Shadow cache
folder from designer, etc. but nothing help...

Project works fine.

Answer

I found solution. I use Parallels on Mac, and my project was on /Mac/Username/Documents etc. When i moved project to C: path, all works.