I am trying to use ScintillaNET
in WPF (via the Windows Forms Host
). However I am getting an invalid XAML markup. My XAML code is:
<Window x:Class="ObjectiveWin.Editor"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:scintilla="clr-namespace:ScintillaNET"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ObjectiveWin 2013 Express" Height="392.537" Width="628.358" WindowState="Maximized" Loaded="editor_Loaded">
<Grid>
<WindowsFormsHost HorizontalAlignment="Left" Height="340" Margin="0,22,0,0" VerticalAlignment="Top" Width="620">
<scintilla:Scintilla></scintilla:Scintilla>
</WindowsFormsHost>
</Grid>
However, Visual Studio 2012 gives me these errors:
The name Scintilla does not exist in the namespace "clr-namespace:ScintillaNET".
The tag 'Scintilla' does not exist in XML namespace 'clr-namespace:ScintillaNET. Line 8 position 14.'
The name 'scintilla:Scintilla' was not found. Verify you are not missing an assembly reference and that all referenced assemblies have been built
What exactly am I doing wrong? If it matters, I am using .NET Framework 4.5
with VS2012
You have wrong namespace (msdn).
Check this namespace: