public
Description: A lightweight all-in-one DLR REPL for .NET. REPL is integrated into an edit buffer, and is packaged in a single assembly for easy addition to an existing project.
Homepage: http://www.iunknown.com
Clone URL: git://github.com/jflam/repl-lib.git
repl-lib / Core / Repl.xaml
100644 21 lines (19 sloc) 0.709 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<UserControl x:Class="Core.Repl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
        <RichTextBox Name="MainRepl" Style="{DynamicResource TextStyle}" PreviewKeyDown="MainRepl_PreviewKeyDown" Grid.Row="0">
            <FlowDocument>
                <Paragraph>
                    <Run />
                </Paragraph>
            </FlowDocument>
        </RichTextBox>
    </Grid>
</UserControl>