maui-linux/Xamarin.Forms.Xaml.UnitTests/Issues/Issue2659.xaml

34 строки
1.1 KiB
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"
x:Class="Xamarin.Forms.Xaml.UnitTests.Issue2659">
<ContentPage.Resources>
<ResourceDictionary>
<Style x:Key="buttonStyle" TargetType="Button">
<Setter Property="HorizontalOptions" Value="Center" />
<Setter Property="VerticalOptions" Value="CenterAndExpand" />
<Setter Property="FontSize" Value="Large" />
<Setter Property="TextColor" Value="Blue" />
<Setter Property="FontAttributes" Value="Italic" />
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<StackLayout x:Name="stackLayout">
<Button Text="Set Style from Resource"
Clicked="OnSetStyleButtonClicked"
x:Name="button0"/>
<Button Text="Set Style to null"
Clicked="OnUnsetStyleButtonClicked"
x:Name="button1"/>
<Button Text="Set Local Properties"
Clicked="OnSetLocalButtonClicked"
x:Name="button2"/>
<Button Text="Clear Local Properties"
Clicked="OnClearLocalButtonClicked"
x:Name="button3"/>
</StackLayout>
</ContentPage>