Skip to content

Instantly share code, notes, and snippets.

@atzimler
Last active May 17, 2017 10:42
Show Gist options
  • Select an option

  • Save atzimler/515933f180c11c402e38180c278ed8ba to your computer and use it in GitHub Desktop.

Select an option

Save atzimler/515933f180c11c402e38180c278ed8ba to your computer and use it in GitHub Desktop.
<Window x:Class="Z10_BindingFromCode.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Row="1" Grid.Column="1">Update Label</Button>
<TextBlock Grid.Row="3" Grid.Column="1">Old Label Value</TextBlock>
</Grid>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment