diff --git a/newBinding/sample/MauiSample/MainPage.xaml b/newBinding/sample/MauiSample/MainPage.xaml
index 009f652..644d3de 100644
--- a/newBinding/sample/MauiSample/MainPage.xaml
+++ b/newBinding/sample/MauiSample/MainPage.xaml
@@ -20,16 +20,14 @@
SemanticProperties.HeadingLevel="Level1" />
+ SemanticProperties.HeadingLevel="Level2" />
diff --git a/newBinding/sample/MauiSample/MainPage.xaml.cs b/newBinding/sample/MauiSample/MainPage.xaml.cs
index 510d103..bf15d02 100644
--- a/newBinding/sample/MauiSample/MainPage.xaml.cs
+++ b/newBinding/sample/MauiSample/MainPage.xaml.cs
@@ -8,26 +8,29 @@ public MainPage()
{
InitializeComponent();
+ string myName = "Community Toolkit";
+
#if IOS || MACCATALYST
- string labelText = NewBinding.DotnetNewBinding.GetStringWithMyString(new Foundation.NSString("Rachel"));
+ string labelText = NewBinding.DotnetNewBinding.GetStringWithMyString(new Foundation.NSString(myName));
#elif ANDROID
var dotnetNewBinding = new NewBinding.DotnetNewBinding();
- string labelText = dotnetNewBinding.GetString("Rachel") ?? string.Empty;
+ string labelText = dotnetNewBinding.GetString(myName) ?? string.Empty;
#endif
- newBindingSampleLabel.Text = "Hello, " + labelText;
+ newBindingSampleLabel.Text = "Hello, " + labelText + "!";
}
- private void OnCounterClicked(object sender, EventArgs e)
+ private async void OnDocsButtonClicked(object sender, EventArgs e)
{
- count++;
-
- if (count == 1)
- CounterBtn.Text = $"Clicked {count} time";
- else
- CounterBtn.Text = $"Clicked {count} times";
-
- SemanticScreenReader.Announce(CounterBtn.Text);
+ try
+ {
+ Uri uri = new Uri("https://learn.microsoft.com/dotnet/communitytoolkit/maui/native-library-interop/get-started");
+ await Browser.Default.OpenAsync(uri, BrowserLaunchMode.SystemPreferred);
+ }
+ catch (Exception ex)
+ {
+ throw new Exception("Browser failed to launch", ex);
+ }
}
}