<Application x:Class="ImageResizer.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:m="clr-namespace:ImageResizer.Models"
             xmlns:sys="clr-namespace:System;assembly=System.Runtime"
             xmlns:v="clr-namespace:ImageResizer.Views"
             xmlns:ui="http://schemas.modernwpf.com/2019">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ui:ThemeResources />
                <ui:XamlControlsResources />
            </ResourceDictionary.MergedDictionaries>

            <ObjectDataProvider x:Key="ResizeFitValues"
                            MethodName="GetValues"
                            ObjectType="sys:Enum">
                <ObjectDataProvider.MethodParameters>
                    <x:Type Type="{x:Type m:ResizeFit}"/>
                </ObjectDataProvider.MethodParameters>
            </ObjectDataProvider>
            
            <ObjectDataProvider x:Key="ResizeUnitValues"
                            MethodName="GetValues"
                            ObjectType="sys:Enum">
                <ObjectDataProvider.MethodParameters>
                    <x:Type Type="{x:Type m:ResizeUnit}"/>
                </ObjectDataProvider.MethodParameters>
            </ObjectDataProvider>
            
            <v:EnumValueConverter x:Key="EnumValueConverter"/>
            <v:AutoDoubleConverter x:Key="AutoDoubleConverter"/>
            <v:BoolValueConverter x:Key="BoolValueConverter"/>
            <v:VisibilityBoolConverter x:Key="VisibilityBoolConverter"/>
        </ResourceDictionary>
    </Application.Resources>
</Application>
