From 6a210d3f3303ea984bb3288d739ab238c4cfd6bb Mon Sep 17 00:00:00 2001 From: Bhavanesh N Date: Fri, 10 Jan 2025 15:08:56 +0530 Subject: [PATCH] Update shell.md | clarify the use of the OnPlatform markup extension (#2717) * Update shell.md | Clarifying about OnPlatform markup extension * Fix typo and clarify `OnPlatform` usage --------- Co-authored-by: David Britch --- docs/tutorials/notes-app/includes/shell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/notes-app/includes/shell.md b/docs/tutorials/notes-app/includes/shell.md index c81065a9e..ed97e2014 100644 --- a/docs/tutorials/notes-app/includes/shell.md +++ b/docs/tutorials/notes-app/includes/shell.md @@ -132,7 +132,7 @@ Let's break down the key parts of the XAML: - `` is the content of the . - Two `` objects inside of the ``. Before you replaced the template code, there was a single `` object, pointing to the `MainPage` page. -The `TabBar` and its children don't represent any user interface elements, but rather the organization of the app's visual hierarchy. Shell takes these objects and produces the user interface for the content, with a bar at the top representing each page. The `ShellContent.Icon` property for each page uses special syntax: `{OnPlatform ...}`. This syntax is processed when the XAML pages are compiled for each platform, and with it you can specify a property value for each platform. In this case, every platform uses the `icon_about.png` icon by default, but iOS and MacCatalyst will use `icon_about_ios.png`. +The `TabBar` and its children don't represent any user interface elements, but rather the organization of the app's visual hierarchy. Shell takes these objects and produces the user interface for the content, with a bar at the top representing each page. The `ShellContent.Icon` property for each page uses the `OnPlatform` markup extension. This XAML markup extension is used to specify different values for different platforms. In this example, every platform uses the `icon_about.png` icon by default, but iOS and MacCatalyst use `icon_about_ios.png`. Each `` object is pointing to a page to display. This is set by the `ContentTemplate` property.