Skip to content

ReactivePopupPage.BackgroundClick property

Defined in

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

Applies to

net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net9.0-windows10.0.19041, netstandard2.1, net471

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

View source

Summary: Gets or sets an observable sequence that emits a Unit value each time the user taps the background area of the popup.

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.