<Application x:Class="CtrEditor.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:CtrEditor"
        xmlns:osExtraccion="clr-namespace:CtrEditor.ObjetosSim.Extraccion_Datos"
        xmlns:os="clr-namespace:CtrEditor.ObjetosSim" StartupUri="MainWindow.xaml">

    <Application.Resources>
        <local:MeterToPixelConverter x:Key="MeterToPixelConverter" />
        <local:LevelToHeightMultiConverter x:Key="LevelToHeightMultiConverter" />
        <local:PercentageToHeightConverter x:Key="PercentageToHeightConverter" />
        <local:WidthPercentageConverter x:Key="WidthPercentageConverter" />
        <local:DistanceToMarginConverter x:Key="DistanceToMarginConverter" />
        <local:MarginConverter x:Key="MarginConverter" />
        <local:FloatToFormattedStringConverter x:Key="floatFormatter" />
        <local:DoubleToFormattedStringConverter x:Key="doubleFormatter" />
        <local:BrushToColorNameConverter x:Key="BrushToColorNameConverter" />
        <local:VerticalPositionConverter x:Key="VerticalPositionConverter" />
        <local:SumConverter x:Key="SumConverter" />
        <local:ColorToBrushConverter x:Key="ColorToBrushConverter" />
        <local:StringToBrushConverter x:Key="StringToBrushConverter" />
        <local:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
        <local:BoolToColorConverter x:Key="BoolToColorConverter" />
        <local:SubclassFilterConverter x:Key="SubclassFilterConverterosBuscarCoincidencias"
                TargetType="{x:Type osExtraccion:osBuscarCoincidencias}" />
        <local:SubclassFilterConverter x:Key="SubclassFilterConverterosVMMotor" TargetType="{x:Type os:osVMmotorSim}" />
        <local:UnsavedChangesConverter x:Key="UnsavedChangesConverter"/>
        <local:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        
        <!-- Estilo global para TreeViewItem para evitar errores de binding -->
        <Style TargetType="TreeViewItem">
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
        </Style>
    </Application.Resources>
</Application>

