From 1a225239ec11052bff7e392d4c81574a42962525 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 08:34:34 +0000 Subject: [PATCH 1/2] Initial plan From 260ea626652602cb7d9d440043cbccbd21399cd0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 08:36:38 +0000 Subject: [PATCH 2/2] Add tip about Popup/Popup inheritance to XAML popup documentation Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> --- docs/maui/views/Popup.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/maui/views/Popup.md b/docs/maui/views/Popup.md index ddaaa620..c847f1d3 100644 --- a/docs/maui/views/Popup.md +++ b/docs/maui/views/Popup.md @@ -96,6 +96,9 @@ The default values for `HorizontalOptions` and `VerticalOptions` will result in A popup will present with a default `Padding` of 15. In order to make the `SimplePopup` look better a `Padding` of 10 has been added. +> [!TIP] +> For more advanced scenarios, such as returning a result from a `Popup`, the code-behind file (_*.xaml.cs_) must inherit from `Popup` or `Popup` (found in `CommunityToolkit.Maui.Views`). For a complete example demonstrating this, please refer to [Popup - Returning a result](./popup/popup-result.md). + ### Presenting a Popup Created in XAML Once the `Popup` has been created in XAML, it can then be presented through the use of the `Popup` extension methods used on a `Page`, `Shell` or an `INavigation`, or through the [`IPopupService`](popup-service.md) implementation from this toolkit.