Skip to content

Commit 79c2a2b

Browse files
Copilotjfversluis
andauthored
Add tip about Popup base class inheritance to XAML popup docs (#627)
* Initial plan * Add tip about Popup/Popup<T> inheritance to XAML popup documentation Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
1 parent 942b6d4 commit 79c2a2b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/maui/views/Popup.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ The default values for `HorizontalOptions` and `VerticalOptions` will result in
9696

9797
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.
9898

99+
> [!TIP]
100+
> For more advanced scenarios, such as returning a result from a `Popup`, the code-behind file (_*.xaml.cs_) must inherit from `Popup` or `Popup<T>` (found in `CommunityToolkit.Maui.Views`). For a complete example demonstrating this, please refer to [Popup - Returning a result](./popup/popup-result.md).
101+
99102
### Presenting a Popup Created in XAML
100103

101104
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.

0 commit comments

Comments
 (0)