HwndSource.AutoResized Event


Occurs when layout causes the HwndSource to automatically resize.

 event System::Windows::AutoResizedEventHandler ^ AutoResized;
public event System.Windows.AutoResizedEventHandler AutoResized;
member this.AutoResized : System.Windows.AutoResizedEventHandler 
Public Custom Event AutoResized As AutoResizedEventHandler 
Public Event AutoResized As AutoResizedEventHandler 

Event Type



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.

Applies to