maui-linux/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionar...

21 строка
814 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests"
x:Class="Xamarin.Forms.Xaml.UnitTests.TestSharedResourceDictionary">
<StackLayout>
<StackLayout>
<StackLayout.Resources>
<ResourceDictionary MergedWith="local:SharedResourceDictionary"/>
</StackLayout.Resources>
<Label x:Name="label" Style="{StaticResource sharedfoo}"/>
<Label x:Name="implicitLabel" />
</StackLayout>
<ContentView>
<ContentView.Resources>
<ResourceDictionary MergedWith="local:SharedResourceDictionary2"/>
</ContentView.Resources>
<Label x:Name="label2" Style="{StaticResource sharedStyle2}"/>
</ContentView>
</StackLayout>
</ContentPage>