blob: c7c66ef92b97211846f159eb1fb03c671a64d7ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.Xaml.UnitTests.Bz56852">
<ContentPage.Resources>
<ResourceDictionary>
<x:Double x:Key="Large">50</x:Double>
<x:Double x:Key="Small">10</x:Double>
<Style x:Key="MyBaseStyle" TargetType="Label">
<Setter Property="FontSize" Value="{DynamicResource Small}" />
</Style>
<Style x:Key="MyDerivedStyle" TargetType="Label" BasedOn="{StaticResource MyBaseStyle}">
<Setter Property="FontSize" Value="{DynamicResource Large}" />
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<Label x:Name="label" Text="Hello" Style="{StaticResource MyDerivedStyle}" />
</ContentPage>
|