I'm want to use some small ScintillaNet Controls in my WPF Application. I've compiled the WPF branch from the ScintillaNet repository. I have added the Scrintilla control:
<UserControl x:Class="LogicEditor.View.ScriptInput"
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:scintilla="http://scintillanet.codeplex.com"
mc:Ignorable="d"
d:DesignHeight="63" d:DesignWidth="195">
<Grid>
<scintilla:ScintillaWPF HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="_scintilla" />
</Grid>
</UserControl>
The control looks fine. If I increase the Control the scintilla control also increases but if I reduce the control the scintilla control keeps the size and overlaps the other UI.
I looked to the sample application of ScintillaNet.WPF: SCide.WPF. In this Application all works fine but I cannot see any relevant difference to my code.
I think the resizing and the overlapping are two different issues. I also tried the normal WindowsFormsHost without the WPF wrapper but there I have the same problem.
Can anybody help?
Edit: This only happens when the Scintilla control is in a List
I know this issue is super old but I had the same problem and solved it with a custom panel that minimizes the text editor desired size:
And then wrap scintilla control like this: