Files
docs-desktop/dotnet-desktop-guide/net/wpf/data/snippets/binding-declarations-overview/csharp/MainWindow.xaml
T
Andy (Steve) De GeorgeandGenevieve Warren 4adbe51408 Port databinding articles to WPF 5.0 (#1049)
* Binding declarations article

* Binding sources article

* TOC/Index updates

* Update redirects

* Acro/bugs

* Apply suggestions from code review

Co-authored-by: Genevieve Warren <[email protected]>

* fix bookmarks

Co-authored-by: Genevieve Warren <[email protected]>
2021-04-30 12:08:09 -07:00

16 lines
714 B
XML

<Window x:Class="ArticleExample.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"
xmlns:local="clr-namespace:ArticleExample"
mc:Ignorable="d"
SizeToContent="WidthAndHeight"
Title="Simple Data Binding Sample">
<StackPanel Width="200" Margin="35">
<Button Click="ShowDataBindingCode_Click">DataBinding in code</Button>
<Button Click="ShowBasicDataBinding_Click">Basic XAML of databinding</Button>
</StackPanel>
</Window>