FrameworkElement.InvalidateViewport Method

Definition

Invalidates the viewport state for a UIElement that is used to calculate the effective viewport.

protected:
 virtual void InvalidateViewport() = InvalidateViewport;
void InvalidateViewport();
protected void InvalidateViewport();
function invalidateViewport()
Protected Sub InvalidateViewport ()

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

The UIElement must have previously been registered with the framework using the RegisterAsScrollPort method.

Applies to

See also

  • <xref:Windows.UI.Xaml.FrameworkElement.EffectiveViewportChanged%0a*+M%3aWindows.UI.Xaml.UIElement.RegisterAsScrollPort(Windows.UI.Xaml.UIElement)>