Interface ILayerHost
The contract a host view must satisfy to be used with ILayer<TView>. Provides the invalidation, focus, pointer-capture, and service-resolution APIs that layers call on their host during layout, rendering, and input handling.
public interface ILayerHost : IServiceProvider
- Inherited Members
- Extension Methods
Properties
Frame
The arranged frame of the host view, in parent-local coordinates.
Rect Frame { get; }
Property Value
IsFocused
Whether the host view currently holds keyboard focus.
bool IsFocused { get; }
Property Value
Methods
CapturePointer(int)
Routes all subsequent pointer events for pointerId to this view.
void CapturePointer(int pointerId)
Parameters
pointerIdint
Focus()
Requests keyboard focus for the host view. Returns true if focus was granted.
bool Focus()
Returns
InvalidateMeasure()
Marks the view as needing re-measure (and re-layout).
void InvalidateMeasure()
InvalidateRender()
Marks the view as needing re-render.
void InvalidateRender()
ReleasePointer(int)
Releases a previously captured pointer.
void ReleasePointer(int pointerId)
Parameters
pointerIdint
RequestAnimationFrame()
Schedules an animation frame callback via AnimateCore.
void RequestAnimationFrame()