Shell.SetSearchHandler(BindableObject, SearchHandler) Method

Definition

Sets the handler responsible for implementing the integrated search functionality for when the given obj is active. Enabling this property results in a search box being added at the top of the page.

public:
 static void SetSearchHandler(Microsoft::Maui::Controls::BindableObject ^ obj, Microsoft::Maui::Controls::SearchHandler ^ handler);
public static void SetSearchHandler (Microsoft.Maui.Controls.BindableObject obj, Microsoft.Maui.Controls.SearchHandler handler);
static member SetSearchHandler : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.SearchHandler -> unit
Public Shared Sub SetSearchHandler (obj As BindableObject, handler As SearchHandler)

Parameters

obj
BindableObject

The object that modifies the Shell search functionality.

handler
SearchHandler

Defines the integrated search functionality.

Applies to