diff --git a/docs/fundamentals/shell/search.md b/docs/fundamentals/shell/search.md index 7f2991131..c53f0fe4a 100644 --- a/docs/fundamentals/shell/search.md +++ b/docs/fundamentals/shell/search.md @@ -92,11 +92,13 @@ The subclassed can be consumed by s ```xaml + xmlns:controls="clr-namespace:Xaminals.Controls" + xmlns:data="clr-namespace:Xaminals.Data"> + DisplayMemberName="Name" + Animals="{x:Static data:CatData.Cats}" /> ... @@ -109,7 +111,8 @@ Shell.SetSearchHandler(this, new AnimalSearchHandler { Placeholder = "Enter search term", ShowsResults = true, - DisplayMemberName = "Name" + DisplayMemberName = "Name", + Animals = CatData.Cats }); ``` @@ -147,10 +150,13 @@ In addition to displaying `string` data in the search results, the appearance of ```xaml + xmlns:controls="clr-namespace:Xaminals.Controls" + xmlns:data="clr-namespace:Xaminals.Data" + xmlns:models="clr-namespace:Xaminals.Models"> + ShowsResults="true" + Animals="{x:Static data:CatData.Cats}">