summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/StyleXamlGallery.xaml
blob: 524db1524e3c8cedf19042b1be93ea9a736da8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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.Controls.StyleXamlGallery">
<ContentPage.Resources>
	<ResourceDictionary>
		<Style x:Key="customStyle" TargetType="Label" BaseResourceKey="SubtitleStyle">
			<Setter Property="Label.TextColor" Value="Color.Pink"/>
		</Style>
	</ResourceDictionary>
</ContentPage.Resources>
	<StackLayout>
		<Label Text="This uses TitleStyle" Style="{DynamicResource TitleStyle}"/>
		<Label Text="This uses SubtitleStyle" Style="{DynamicResource SubtitleStyle}"/>
		<Label Text="This uses BodyStyle" Style="{DynamicResource BodyStyle}"/>
		<Label Text="This uses CaptionStyle" Style="{DynamicResource CaptionStyle}"/>
		<Label Text="This uses a custom style inherited from SubtitleStyle" Style="{StaticResource customStyle}"/>
	</StackLayout>
</ContentPage>