| File: IMarkupExtension.cs | Web Access |
| Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls) |
#nullable disable using System; namespace Microsoft.Maui.Controls.Xaml { public interface IMarkupExtension<out T> : IMarkupExtension { new T ProvideValue(IServiceProvider serviceProvider); } public interface IMarkupExtension { object ProvideValue(IServiceProvider serviceProvider); } /// <include file="../../docs/Microsoft.Maui.Controls.Xaml/AcceptEmptyServiceProviderAttribute.xml" path="Type[@FullName='Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProviderAttribute']/Docs/*" /> [AttributeUsage(AttributeTargets.Class, Inherited = false)] public sealed class AcceptEmptyServiceProviderAttribute : Attribute { } [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class RequireServiceAttribute : Attribute { public RequireServiceAttribute(Type[] serviceTypes) { ServiceTypes = serviceTypes; } public Type[] ServiceTypes { get; } } }