Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Controls/src/Core/Element/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,10 @@ void SetHandler(IElementHandler newHandler)
}
}

/// <summary>
/// Registers the specified <paramref name="effect"/> to this element.
/// </summary>
/// <param name="effect">The effect to be registered.</param>
void IEffectControlProvider.RegisterEffect(Effect effect)
{
if (effect is RoutingEffect re && re.Inner != null)
Expand Down
7 changes: 7 additions & 0 deletions src/Controls/src/Core/IEffectControlProvider.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#nullable disable
namespace Microsoft.Maui.Controls
{
/// <summary>
/// Provides the functionality to register an <see cref="Effect"/> to an element.
/// </summary>
public interface IEffectControlProvider
{
/// <summary>
/// Registers the specified <paramref name="effect"/> to an element.
/// </summary>
/// <param name="effect">The effect to be registered.</param>
void RegisterEffect(Effect effect);
}
}