File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments