private void InitializePreview() { editorPreview = new ScriptTextEditor { Text = "[Level]\nRain=ENABLED,12 ; Has error\nLayer1=128,128,>\n\t\t128,-8\nMirror=69,$2137\n[Level]", IsReadOnly = true, HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Hidden, VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Hidden }; editorPreview.TextArea.Margin = new Thickness(3); elementHost.Child = editorPreview; }
public SectionRenderer(ScriptTextEditor e) { _editor = e; }