Skip to content

Instantly share code, notes, and snippets.

@sakapon
Last active July 5, 2016 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakapon/036952b03899cdc8d884e598107d8591 to your computer and use it in GitHub Desktop.
Save sakapon/036952b03899cdc8d884e598107d8591 to your computer and use it in GitHub Desktop.
BindingSample / MarkupExWpf / MainWindow
<?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>
<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