---
title: "WPF APPLICATION"  
description: "WPF APPLICATION"  
author: "Jaya J"  
published: 2015-03-24  
updated: 2015-03-24  
canonical: https://www.mindstick.com/forum/23046/wpf-application  
category: ".net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# WPF APPLICATION

Tell [me the code](https://www.mindstick.com/forum/156831/can-you-tell-me-the-code-to-write-a-c-sharp-program) for how to change [font size](https://www.mindstick.com/forum/158654/what-is-the-css-property-used-to-specify-the-font-size-of-an-element) of [labels](https://www.mindstick.com/forum/34568/badges-labels-page-headers),buttons in wpf [applications](https://www.mindstick.com/articles/12847/how-to-choose-the-right-ethernet-cable-for-industrial-applications) when screen resolutions was changed.i.e, when I'm using this wpf [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) in another [system](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business)(the [screen resolution](https://answers.mindstick.com/qa/102458/explain-the-significance-of-a-laptop-s-screen-resolution) for that system is different)how can i make change those labels, buttons sizes dynamically.\
Please help me.

## Replies

### Reply by John Smith

Viewbox is quite useful:\
try following line of [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)\
\

```
<Window x:Class="WpfApplication1.Window1"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    Title="Window" Height="400" Width="400">    <Viewbox>        <StackPanel>            <TextBlock FontSize="16">Test</TextBlock>            <Border Background="Aqua" Width="200" Height="200"></Border>                            </StackPanel>    </Viewbox></Window>
```


---

Original Source: https://www.mindstick.com/forum/23046/wpf-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
