File: Handlers\HandlerProperties.cs
Web Access
Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls)
using Microsoft.Maui;
 
namespace Microsoft.Maui.Controls
{
	public static class HandlerProperties
	{
		public static readonly BindableProperty DisconnectPolicyProperty = BindableProperty.CreateAttached(
			"DisconnectPolicy",
			typeof(HandlerDisconnectPolicy),
			typeof(HandlerProperties),
			HandlerDisconnectPolicy.Automatic);
 
		public static void SetDisconnectPolicy(BindableObject target, HandlerDisconnectPolicy value)
		{
			target.SetValue(DisconnectPolicyProperty, value);
		}
 
		public static HandlerDisconnectPolicy GetDisconnectPolicy(BindableObject target)
		{
			return (HandlerDisconnectPolicy)target.GetValue(DisconnectPolicyProperty);
		}
	}
}