Skip to content

ReactivePopupPage.BackgroundClick property

Defined in

Type: ReactivePopupPage Namespace: ReactiveUI.Maui.Plugins.Popup Assembly: ReactiveUI.Maui.Plugins.Popup.dll

Applies to

net11.0, net11.0-ios27.2, net11.0-maccatalyst27.2, net11.0-android37.0, net11.0-tvos27.2, net11.0-macos27.2, net11.0-windows10.0.19041, net10.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-android36.0, net10.0-tvos26.0, net10.0-windows10.0.19041

public IObservable<Unit> BackgroundClick { get; protected set; }

View source

Summary: Gets an observable that emits when the popup background is tapped.

Returns: IObservable

Value: The background click.

Remarks

This is a Hot Observable derived from the BackgroundClicked event. Hot Observables produce values regardless of subscriptions, though in this case the underlying event requires the page to be active. This allows for declarative subscription to background tap gestures, commonly used to dismiss the popup when the user clicks outside the content area. The setter is protected to allow derived classes to customize the observable behavior if needed.