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

An application that demonstrates the ability to change the scaling of the parent window through the child modal window. Written in C# WPF.

Notifications You must be signed in to change notification settings

seigtm/Scaling-WPF-CSharp-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An application that demonstrates the ability to change the scaling of the parent window through the child modal window. Written in C# WPF.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages