MapMode.ViewportSizeChanged Method

This documentation is no longer available on MSDN, however it is available as a CHM download.

Enables derived classes to provide custom handling when the size of the viewport changes.

Namespace: Microsoft.Maps.MapControl.Core
Assembly: Microsoft.Maps.MapControl.Common (in Microsoft.Maps.MapControl.Common.dll)



Public Overridable Sub ViewportSizeChanged ( _
    viewportSize As Size _
public virtual void ViewportSizeChanged (
    Size viewportSize
virtual void ViewportSizeChanged (
    Size viewportSize
public void ViewportSizeChanged (
    Size viewportSize
public function ViewportSizeChanged (
    viewportSize : Size


  • viewportSize
    The new viewport size.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also


MapMode Class
MapMode Members
Microsoft.Maps.MapControl.Core Namespace