This C# WPF app demonstrates the ability to change the scaling of the parent window through the child modal window.
This project is my homework assigment (2021 year).
// Default height and width of the parent window.
private const uint DefaultHeight = 300;
private const uint DefaultWidth = 500;
// scaling - scaling unsigned int value.
public void ChangeScaling(uint scaling)
{
Height = DefaultHeight * scaling / 100;
Width = DefaultWidth * scaling / 100;
}
The parent window with the "change scaling" button.
The result of changing the scaling of the parent window by clicking the "apply" button in the modal window.