-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6db79c
commit 93109f6
Showing
2 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 17 additions & 18 deletions
35
sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
using CountryData.Sample.MAUI.ViewModels; | ||
|
||
namespace CountryData.Sample.MAUI; | ||
|
||
public partial class MainPage : ContentPage | ||
namespace CountryData.Sample.MAUI | ||
{ | ||
int count = 0; | ||
|
||
public MainPage(MainViewModel mainViewModel) | ||
{ | ||
InitializeComponent(); | ||
BindingContext = mainViewModel; | ||
} | ||
|
||
//private void OnCounterClicked(object sender, EventArgs e) | ||
//{ | ||
// count++; | ||
// CounterLabel.Text = $"Current count: {count}"; | ||
public partial class MainPage : ContentPage | ||
{ | ||
int count = 0; | ||
Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs GitHub Actions / build
Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs GitHub Actions / build
Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs GitHub Actions / build
|
||
|
||
// SemanticScreenReader.Announce(CounterLabel.Text); | ||
//} | ||
} | ||
public MainPage(MainViewModel mainViewModel) | ||
{ | ||
InitializeComponent(); | ||
BindingContext = mainViewModel; | ||
} | ||
|
||
// Uncomment this method if you need it | ||
//private void OnCounterClicked(object sender, EventArgs e) | ||
//{ | ||
// count++; | ||
// CounterLabel.Text = $"Current count: {count}"; | ||
//} | ||
} | ||
} |