Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (20 loc) · 772 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 772 Bytes

Scaling test WPF C# Application

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.