maui-linux/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml

30 строки
1.3 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"
xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests"
xmlns:remote="clr-namespace:Xamarin.Forms.Controls;assembly=Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Xaml.UnitTests.XStatic">
<ContentPage.ToolbarItems>
<ToolbarItem Icon="{x:Static local:MockxStatic.MockFieldRef}" />
</ContentPage.ToolbarItems>
<StackLayout>
<Label x:Name="staticproperty"
Text="{x:Static Member=local:MockxStatic.MockStaticProperty}" />
<Label x:Name="memberisoptional"
Text="{x:Static local:MockxStatic.MockStaticProperty}" />
<Label x:Name="color"
TextColor="{x:Static local:MockxStatic.BackgroundColor}" />
<Label x:Name="constant"
Text="{x:Static local:MockxStatic.MockConstant}"/>
<Label x:Name="remoteConstant"
Text="{x:Static remote:App.AppName}"/>
<Label x:Name="field"
Text="{x:Static local:MockxStatic.MockField}"/>
<ScrollView x:Name="enuM"
Orientation="{x:Static ScrollOrientation.Both}"/>
<Label x:Name="field2"
Text="{x:Static local:MockxStatic.MockFieldRef}" />
<Label x:Name="nestedField"
Text="{x:Static local:MockxStatic+Nested.Foo}" />
</StackLayout>
</ContentPage>