VisualElement.OnSizeAllocated(Double, Double) Method
Definition
Important
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.
Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event.
protected:
virtual void OnSizeAllocated(double width, double height);
protected virtual void OnSizeAllocated (double width, double height);
abstract member OnSizeAllocated : double * double -> unit
override this.OnSizeAllocated : double * double -> unit
Protected Overridable Sub OnSizeAllocated (width As Double, height As Double)
Parameters
- width
- Double
The new width of the element.
- height
- Double
The new height of the element.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.