Skip to content

Commit afc72cb

Browse files
committed
Removed the unwanted code
1 parent 3c4e6a3 commit afc72cb

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

ThemeSample/MainPage.xaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
Padding="30,0"
1010
Spacing="25">
1111

12-
<buttons:SfButton
13-
x:Name="CounterBtn"
14-
Text="Click me"
15-
Clicked="OnCounterClicked"
16-
HorizontalOptions="Fill" />
12+
<buttons:SfButton Text="Click me"/>
1713
</VerticalStackLayout>
1814
</ScrollView>
1915

ThemeSample/MainPage.xaml.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,11 @@ namespace ThemeSample
44
{
55
public partial class MainPage : ContentPage
66
{
7-
int count = 0;
8-
97
public MainPage()
108
{
119
InitializeComponent();
1210
}
1311

14-
private void OnCounterClicked(object sender, EventArgs e)
15-
{
16-
count++;
17-
18-
if (count == 1)
19-
CounterBtn.Text = $"Clicked {count} time";
20-
else
21-
CounterBtn.Text = $"Clicked {count} times";
22-
}
23-
2412
protected override void OnAppearing()
2513
{
2614
if (Application.Current != null)

0 commit comments

Comments
 (0)