Skip to content

Commit afc3711

Browse files
Resolved the feedback.
1 parent 04fb34a commit afc3711

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

CheckBox/MainPage.xaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66

77
<StackLayout Padding="20">
88
<syncfusion:SfCheckBox Text="I accept the terms and conditions"
9-
ContentSpacing="20"
9+
ContentSpacing="15"
1010
IsChecked="True"
1111
HorizontalOptions="Start"/>
1212

1313
<syncfusion:SfCheckBox Text="Subscribe to newsletter"
14-
ContentSpacing="25"
14+
ContentSpacing="15"
1515
IsChecked="False"
1616
HorizontalOptions="Start"/>
1717

1818
<syncfusion:SfCheckBox Text="Enable email notifications"
19-
ContentSpacing="10"
19+
ContentSpacing="15"
2020
IsChecked="True"
2121
HorizontalOptions="Start"/>
2222

2323
<syncfusion:SfCheckBox Text="Remember me on this device"
24-
ContentSpacing="5"
24+
ContentSpacing="15"
2525
IsChecked="False"
2626
HorizontalOptions="Start"/>
2727

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This repository contains a sample explaining how to Customize Content Spacing in
33

44
### ContentSpacing support in .NET MAUI CheckBox
55

6-
The `ContentSpacing` feature in CheckBox control allows for flexible adjustment of the space between the control's visual element and its associated label text. This feature enhances layout customization by offering different spacing options, ensuring that UI components are aligned according to design preferences.
6+
The `ContentSpacing` feature in CheckBox control allows for flexible adjustment of the space between the control's visual element and its associated label text.
77

88
The following code example illustrate how to set ContentSpacing in SfCheckBox.
99

@@ -17,11 +17,7 @@ The following code example illustrate how to set ContentSpacing in SfCheckBox.
1717
### C#
1818

1919
```
20-
StackLayout stackLayout = new StackLayout();
2120
SfCheckBox sfCheckBox = new SfCheckBox();
2221
sfCheckBox.Text = "Check Box";
2322
sfCheckBox.ContentSpacing = 25;
24-
stackLayout.Children.Add(sfCheckBox);
25-
this.Content = stackLayout;
26-
2723
```

0 commit comments

Comments
 (0)