dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
732 stars 171 forks source link

WPF line spacing is too large #7

Closed joelspadin closed 9 years ago

joelspadin commented 10 years ago

The rich text box in ConsoleControl.xaml uses double line spacing, so it does not look like a proper console. Adding the following to the <RichTextBox> element fixes it to single line spacing.

<RichTextBox.Resources>
    <Style TargetType="{x:Type Paragraph}">
        <Setter Property="Margin" Value="0" />
    </Style>
</RichTextBox.Resources>
dwmkerr commented 9 years ago

Fixed in 1.1, release will be made shortly.