Last active
July 5, 2016 10:43
-
-
Save sakapon/036952b03899cdc8d884e598107d8591 to your computer and use it in GitHub Desktop.
BindingSample / MarkupExWpf / MainWindow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
</startup> | |
<appSettings> | |
<add key="WindowHeight" value="600" /> | |
<add key="WindowWidth" value="400" /> | |
<add key="ResizeMode" value="NoResize" /> | |
<add key="Message" value="Hello, world." /> | |
<add key="FontSize" value="36" /> | |
</appSettings> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="MarkupExWpf.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="clr-namespace:MarkupExWpf" | |
Title="Markup Ex" Height="{local:AppSettings WindowHeight}" Width="{local:AppSettings WindowWidth}" | |
ResizeMode="{local:AppSettings ResizeMode}" FontSize="{local:AppSettings FontSize}"> | |
<Grid> | |
<TextBlock Text="{local:AppSettings Message}"/> | |
</Grid> | |
</Window> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment