<Window x:Class="OnDropBookmarks.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Loaded="UserControl_Loaded">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="200" />
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        

        <telerik:RadTreeView Grid.Row="0" Name="radTreeView" telerik:RadDragAndDropManager.AllowDrag="True" >
            <telerik:RadTreeViewItem Header="Desert" >
                <Image Source="Images/Desert.jpg" Height="150" Width="200"/>
            </telerik:RadTreeViewItem>

            <telerik:RadTreeViewItem Header="Koala" >
                <Image Source="Images/Koala.jpg" Height="150" Width="200"/>
            </telerik:RadTreeViewItem>

            <telerik:RadTreeViewItem Header="Jellyfish" >
                <Image Source="Images/Jellyfish.jpg" Height="150" Width="200"/>
            </telerik:RadTreeViewItem>
            
            <telerik:RadTreeViewItem Header="Penguins" >
                <Image Source="Images/Penguins.jpg" Height="150" Width="200"/>
            </telerik:RadTreeViewItem>

        </telerik:RadTreeView>
        
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <Button Name="isInsideBookmark" Click="isInsideBookmark_Click" Content="Check for bookmarks" />
        </StackPanel>

        <telerik:RadRichTextBox Grid.Row="2" Name="radRichTextBox" BorderThickness="1">
            <telerik:RadRichTextBox.Resources>
                <Style TargetType="telerik:RadRichTextBox">
                    <Setter Property="telerik:RadDragAndDropManager.AllowDrop" Value="True" />
                </Style>
            </telerik:RadRichTextBox.Resources>
        </telerik:RadRichTextBox>

        <Rectangle Name="marker" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="2" Width="2" Height="20" Fill="Maroon" Visibility="Collapsed" />
        
    </Grid>
</Window>
