Hi Actipro,
I made a small modification to the [view]\Actipro Software\WPF-Controls\v16.1.0631\SampleBrowser\ProductSamples\SyntaxEditorSamples\QuickStart\EditorViewMarginsVisibility\MainControl.xaml to restrict the MinWidth of EditorLineNumberMargin to 10. Code as follow:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
xmlns:editor="http://schemas.actiprosoftware.com/winfx/xaml/syntaxeditor"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:editorPrimitives="clr-namespace:ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives;assembly=ActiproSoftware.SyntaxEditor.Wpf"
>
<UserControl.Resources>
<Style TargetType="{x:Type editorPrimitives:EditorLineNumberMargin}">
<Setter Property="MinWidth" Value="10" />
</Style>
</UserControl.Resources>
<DockPanel>
On the sample "Editor View Margins - Visibility", I added many lines (more than 10 lines).
Next, I toggle to set the Line number margin visibility to be Visible.
Observe that the line numbers are clipped. The expected behavior would be the line number margin would resize accordingly.
Please help me with a fix. Thank you.