File tree 1 file changed +27
-3
lines changed
1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,38 @@ The following code example illustrate how to set ContentSpacing in SfCheckBox.
10
10
### XAML
11
11
12
12
```
13
- <syncfusion:SfCheckBox Text="Check Box" ContentSpacing="25"/>
14
-
13
+ <StackLayout Padding="20">
14
+ <syncfusion:SfCheckBox Text="I accept the terms and conditions"
15
+ ContentSpacing="15"
16
+ IsChecked="True"
17
+ HorizontalOptions="Start"/>
18
+
19
+ <syncfusion:SfCheckBox Text="Subscribe to newsletter"
20
+ ContentSpacing="15"
21
+ IsChecked="False"
22
+ HorizontalOptions="Start"/>
23
+
24
+ <syncfusion:SfCheckBox Text="Enable email notifications"
25
+ ContentSpacing="15"
26
+ IsChecked="True"
27
+ HorizontalOptions="Start"/>
28
+
29
+ <syncfusion:SfCheckBox Text="Remember me on this device"
30
+ ContentSpacing="15"
31
+ IsChecked="False"
32
+ HorizontalOptions="Start"/>
33
+
34
+ <syncfusion:SfCheckBox Text="Allow location access"
35
+ ContentSpacing="15"
36
+ IsChecked="True"
37
+ HorizontalOptions="Start"/>
38
+ </StackLayout>
15
39
```
16
40
17
41
### C#
18
42
19
43
```
20
44
SfCheckBox sfCheckBox = new SfCheckBox();
21
- sfCheckBox.Text = "Check Box ";
45
+ sfCheckBox.Text = "I accept the terms and conditions ";
22
46
sfCheckBox.ContentSpacing = 25;
23
47
```
You can’t perform that action at this time.
0 commit comments