blob: 8893678637245a90e79fa052372eac7c1989ca49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System;
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace Xamarin.Forms.Controls.GalleryPages.PlatformSpecificsGalleries
{
public class EntryPageiOS : ContentPage
{
public EntryPageiOS()
{
var entry = new Entry
{
FontSize = 22,
Placeholder = "Type and toggle AdjustsFontSizeToFitWidth"
};
Content = new StackLayout
{
Children =
{
entry,
new Button
{
Text = "Toggle AdjustsFontSizeToFitWidth",
Command = new Command(() => entry.On<iOS>().SetAdjustsFontSizeToFitWidth(!entry.On<iOS>().AdjustsFontSizeToFitWidth()))
}
}
};
}
}
}
|