forked from enisn/Xamarin.Forms.InputKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
65 lines (36 loc) · 2.25 KB
/
readme.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--------------------------------------------------
----------------After Installation----------------
--------------------------------------------------
You should visit https://github.com/enisn/Xamarin.Forms.InputKit/wiki/Getting-Started to complete set-up. Or follow instructions below:
## Android
- Go your MainActivity and add following code to your OnCreate() method:
Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);
## iOS
- Go your AppDelegate.cs and add following code to your FinishedLaunching() method:
Plugin.InputKit.Platforms.iOS.Config.Init();
------------------------------------------------------------
---------------------------Usage----------------------------
------------------------------------------------------------
Go your XAML page and add that xmlns to your <ContentPage tag
xmlns:input="clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit"
Then you will be able to use controls easily inside your page like:
<input:CheckBox Text="Option 1" Type="Check" />
------------------------------------------------------------
---------------------Optional Settings----------------------
------------------------------------------------------------
-------------------Advanced-Entry-Alert-Icon----------------------------------
Your resources must contain 24dp alert.png to display validation warning on AdvancedEntry !
If doesn't exits alert icon won't be displayed.
------------------------------------------------------------------------------
-----------------------------------------------------------
---------------------EASY--DESIGNING-----------------------
-----------------------------------------------------------
If you want to set all the controls in your app you can use GlobalSettings for this package.
Go your
App.cs
to set default values of controls and set some properties in control which you need. Like below:
Plugin.InputKit.Shared.Controls.CheckBox.GlobalSetting.BorderColor = Color.Red;
Plugin.InputKit.Shared.Controls.CheckBox.GlobalSetting.Size = 36;
Plugin.InputKit.Shared.Controls.RadioButton.GlobalSetting.Color = Color.Red;
...and you'll see all the controls default values changed in entire project.
--------------------------------------------