I am working in Xamarin Studio, trying to learn C# and XAML and I am having some trouble with a bit of XAML for a simple program. I am trying to use a and change the TickFrequency, but it doesn't seem to recognize it or any Tick related attributes. Here is my code:
<?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="HelloWorld.GreetPage">
<ContentPage.Padding>
<OnPlatform x:TypeArguments="Thickness"
iOS="0, 20, 0, 0">
</OnPlatform>
</ContentPage.Padding>
<StackLayout
BindingContext = "{x:Reference slider}">
<Label
HorizontalOptions="Start"
Text="{Binding Value,
StringFormat='Font Size: {0:F0}'}"/>
<Slider
x:Name="slider"
Maximum = "64"
Minimum = "16"
TickFrequency="1"/>
</StackLayout>
</ContentPage>
The error I receive says "No property, bindable property, or event found for "TickFrequency"
Thank you in advance!
要在Android和iOS应用程序中添加xamarin表单中的刻度,您可以尝试这样做
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.