-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
MainWindow.xaml
27 lines (26 loc) · 1.04 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Window x:Class="delegatecommand.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:delegatecommand"
xmlns:ViewModels="clr-namespace:delegatecommand.ViewModels"
mc:Ignorable="d"
Title="MainWindow"
Height="350"
Width="525"
d:DataContext="{d:DesignInstance ViewModels:MainViewModel}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Grid.Row="0"
Content="Update Text"
Command="{Binding UpdateTextCommand}"
CommandParameter="FooBar"
Width="Auto" />
<TextBlock Grid.Row="1"
Text="{Binding Text}" />
</Grid>
</Window>