Skip to content

TimePicker

appleneko2001 edited this page Dec 21, 2021 · 3 revisions

Warning: You have to install an package named Material.Dialog to your project for use this widget / feature.

Summary

TimePicker is a dialog, represents feature of picking time. This feature are ready for use since commit-1f782629bdfb7eba034e00da37781e4470fb83fc.

Usage

// Create TimePicker dialog instance
var dialog = DialogHelper.CreateTimePicker(new DateTimePickerDialogBuilderParams()
{
	Borderless = true,
	StartupLocation = WindowStartupLocation.CenterOwner,
	PositiveButton = new DialogResultButton()
	{
		Content = "CONFIRM",
		Result = "confirm",
	}
});
// Show TimePicker and await result
var result = dialog.ShowDialog(window);
Console.WriteLine(result.GetTimeSpan());

Material.Avalonia Wiki pages is still WIP (work in progress), Pages could not ready for show if they unclickable.

Main section

Widgets / Controls

Theming

Builders

Assist for widgets

Clone this wiki locally