Skip to content

[Proposal] Popup V2 #2434

@VladislavAntonyuk

Description

@VladislavAntonyuk

Feature name

Popup

Link to discussion

https://github.com/CommunityToolkit/Maui/wiki/2025-January-Standup

Progress tracker

  • Android Implementation
  • iOS Implementation
  • MacCatalyst Implementation
  • Windows Implementation
  • Tizen Implementation
  • Unit Tests
  • Samples
  • Documentation

Summary

Inspired by https://redth.codes/popups-with-net-maui-no-plugin-nuget-needed

Motivation

Remove handlers. Easier maintain the product.

Detailed Design

The new popup is based on the current PopupService implementation. We now require a new INavigation parameter to display a popup in the active window.

The Anchor feature is removed.

Usage Syntax

MyNavigation.ShowPopupAsync<T, TResult>(PopupOptions); (where T - PopupView, TResult is expected output type)
MyNavigation.ShowPopupAsync<T,>(PopupOptions); (where T - PopupView)

PopupService.ShowPopupAsync<T, TResult>(navigation, popupOptions)
PopupService.ShowPopupAsync<T>(navigation, popupOptions)

Drawbacks

No response

Alternatives

No response

Unresolved Questions

No response

Metadata

Metadata

Labels

approvedThis Proposal has been approved and is ready to be added to the ToolkitchampionA member of the .NET MAUI Toolkit core team has chosen to champion this featureenhancementNew feature or requestfeature request 📬in-progressproposalA fully fleshed out proposal describing a new feature in syntactic and semantic detail

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions