<Window x:Class="NoesisTestApp.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:NoesisTestApp"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    mc:Ignorable="d"
    Background="#FF3B444B"
    Title="NoesisTestApp">

    <Window.Resources>
        <sys:String x:Key="TestMsg">Binding Succeeded</sys:String>
        
        <!-- Non-nested component's TestString property binds successfully for both WPF and Noesis builds -->
        <local:TestComponent x:Key="TestComponent1" TestString="{StaticResource TestMsg}"/>

        <!-- Nested component's TestString property binding succeeds on WPF build, but fails on Noesis build -->
        <local:TestComponent x:Key="TestComponent2">
            <local:TestComponent x:Name="NestedComponent" TestString="{StaticResource TestMsg}"/>
        </local:TestComponent>
        
    </Window.Resources>
    <Grid>
        <Label Content="{Binding Child.TestString, Source={StaticResource TestComponent2}}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="36" Foreground="White"/>
    </Grid>
</Window>
