public
Description:
Homepage:
Clone URL: git://github.com/devhawk/LightweightDebuggerDemo.git
100644 34 lines (29 sloc) 1.581 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<Window x:Class="LightweightDebuggerDemo.DebugWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ldd="clr-namespace:LightweightDebuggerDemo"
    Title="DebugWindow" Height="300" Width="300" Closed="Window_Closed" Loaded="Window_Loaded" Closing="Window_Closing">
    <Window.CommandBindings>
        <CommandBinding Command="ldd:DebugCommands.StepIn" Executed="StepInExecuted"/>
        <CommandBinding Command="ldd:DebugCommands.StepOut" Executed="StepOutExecuted"/>
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Command="ldd:DebugCommands.StepIn" Key="S"/>
        <KeyBinding Command="ldd:DebugCommands.StepOut" Key="O"/>
    </Window.InputBindings>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
        <Menu>
            <MenuItem Header="Step">
                <MenuItem Command="ldd:DebugCommands.StepIn" InputGestureText="S"></MenuItem>
                <MenuItem Command="ldd:DebugCommands.StepOver"></MenuItem>
                <MenuItem Command="ldd:DebugCommands.StepOut" InputGestureText="O"></MenuItem>
            </MenuItem>
            <TextBlock x:Name="dbgStatus"></TextBlock>
            
        </Menu>
 
        <RichTextBox Grid.Row="1" Name="rtbSource" FontFamily="Consolas" FontSize="14" Background="Black" Foreground="White" IsReadOnly="True" VerticalScrollBarVisibility="Auto"></RichTextBox>
 
    </Grid>
</Window>