File: Core\IPicker.cs
Web Access
Project: src\src\Core\src\Core.csproj (Microsoft.Maui)
#nullable enable
using System.Collections.Generic;
using Microsoft.Maui.Graphics;
 
namespace Microsoft.Maui
{
	/// <summary>
	/// Represents a View for selecting a text item from a list of data.
	/// </summary>
	public interface IPicker : IView, ITextStyle, ITextAlignment, IItemDelegate<string>
	{
		/// <summary>
		/// Gets the list of choices.
		/// </summary>
		IList<string> Items { get; }
 
		/// <summary>
		/// Gets the title for the Picker.
		/// </summary>
		string Title { get; }
 
		/// <summary>
		/// Gets the color for the Picker title.
		/// </summary>
		Color TitleColor { get; }
 
		/// <summary>
		/// Gets the index of the selected item of the picker.
		/// </summary>
		int SelectedIndex { get; set; }
	}
}