Beispiel #1
0
        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;
        }
Beispiel #2
0
 public SectionRenderer(ScriptTextEditor e)
 {
     _editor = e;
 }