<Application x:Class="RoslynPadReplSample.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:codeFixes="clr-namespace:RoslynPad.Roslyn.CodeFixes;assembly=RoslynPad.Roslyn"
             xmlns:codeActions="clr-namespace:Microsoft.CodeAnalysis.CodeActions;assembly=Microsoft.CodeAnalysis.Workspaces"
             xmlns:local="clr-namespace:RoslynPadReplSample"
             StartupUri="MainWindow.xaml">
    <Application.Resources>

        <DrawingImage x:Key="Bulb">
            <DrawingImage.Drawing>
                <GeometryDrawing Brush="Gold">
                    <GeometryDrawing.Geometry>
                        <EllipseGeometry RadiusX="1"
                                         RadiusY="1" />
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
            </DrawingImage.Drawing>
        </DrawingImage>

        <HierarchicalDataTemplate DataType="{x:Type codeFixes:CodeFixCollection}"
                                  ItemsSource="{Binding Fixes, Mode=OneTime}">
            <TextBlock Text="{Binding Provider, Mode=OneTime}" />
        </HierarchicalDataTemplate>

        <HierarchicalDataTemplate DataType="{x:Type codeFixes:CodeFix}"
                                  ItemsSource="{Binding Action, Mode=OneTime, Converter={local:CodeActionsConverter}}">
            <ContentPresenter Content="{Binding Action, Mode=OneTime}" />
        </HierarchicalDataTemplate>

        <DataTemplate DataType="{x:Type codeActions:CodeAction}">
            <TextBlock Text="{Binding Title, Mode=OneTime}" />
        </DataTemplate>
    </Application.Resources>
</Application>
