4 Answers, 1 is accepted
Hello Patrick,
Thank you for your overall interest in this new component which is in Beta state now. Any feedback is greatly appreciated. We will try to address such questions which need additional documentation for the upcoming official Release in R1 2020. The LineNumberMargin control which draws the line numbers reside in the Margin collections of the RadSyntaxEditor. You can remove it the following way:
InitializeComponent();
this.syntaxEditor.Margins.ScrollableLeft.RemoveAt(0);
Regards,
Petar Mladenov
Progress Telerik
Hi Petar,
Thank you for your answer.
I can use this as a workaround, but not a final solution: "RemoveAt (0)" seems to use a magical number, it couéd break if the control changes. In addition, it needs code and cannot be used in a XAML style definition.
A much better solution would be to have a ShowLineNumbers dependency property, with a default value of "true". This way, no need to change the user code if the control changes.
Hello Patrick,
I agree with you and logged a public feedback item which you can follow in order to receive future notifications for status changes.
Regards,
Petar Mladenov
Progress Telerik
Hi Patrick,
Here is the link to the item:
SyntaxEditor: Add ShowLineNumbers dependency property
Regards,
Petar Mladenov
Progress Telerik