HwndSource::AutoResized Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Occurs when layout causes the HwndSource to automatically resize.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public:
event AutoResizedEventHandler^ AutoResized {
	void add(AutoResizedEventHandler^ value);
	void remove(AutoResizedEventHandler^ value);
}

The native behavior of HwndSource is to automatically resize content and the window region based on changes reported through the WPF layout system. The window does not resize if it is currently minimized or if SizeToContent is set to Manual.

.NET Framework
Available since 3.0
Return to top
Show: