<Window x:Class="WebBrowserTest.BrowseDOM"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="BrowseDOM" Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <WebBrowser x:Name="webBrowser" Margin="5" Source="http://www.apress.com"></WebBrowser>

        <Button Grid.Row="1" Click="cmdAnalyzeDOM_Click" Margin="10" Padding="5" HorizontalAlignment="Right">Analyze DOM</Button>
        <TreeView Grid.Row="2" Margin="5" x:Name="treeDOM"></TreeView>
    </Grid>
</Window>
