Element. On Size Allocated(Double, Double) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called when the size of the element is set during a layout cycle. This method is called directly before the SizeChanged event is emitted. Implement this method to add class handling for this event.
protected virtual void OnSizeAllocated (double width, double height);
abstract member OnSizeAllocated : double * double -> unit override this.OnSizeAllocated : double * double -> unit
The new width of the element.
The new height of the element.
This method has no default implementation. You should still call the base implementation in case an intermediate class has implemented this method. Most layouts will want to implement this method in order to layout their children during a layout cycle.