forked from dotMorten/MauiEx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoSuggestBoxQuerySubmittedEventArgs.cs
35 lines (32 loc) · 1.15 KB
/
AutoSuggestBoxQuerySubmittedEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Text;
namespace dotMorten.Xamarin.Forms
{
/// <summary>
/// Provides event data for the AutoSuggestBox.QuerySubmitted event.
/// </summary>
public sealed class AutoSuggestBoxQuerySubmittedEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSuggestBoxQuerySubmittedEventArgs"/> class.
/// </summary>
/// <param name="queryText"></param>
/// <param name="chosenSuggestion"></param>
internal AutoSuggestBoxQuerySubmittedEventArgs(string queryText, object chosenSuggestion)
{
QueryText = queryText;
ChosenSuggestion = chosenSuggestion;
}
/// <summary>
/// Gets the suggested result that the use chose.
/// </summary>
/// <value>The suggested result that the use chose.</value>
public object ChosenSuggestion { get; }
/// <summary>
/// The query text of the current search.
/// </summary>
/// <value>Gets the query text of the current search.</value>
public string QueryText { get; }
}
}