/
MainPage.xaml
28 lines (26 loc) · 1.36 KB
/
MainPage.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
28
<UserControl x:Class="KnockoutCS.Example.HelloWorld.MainPage"
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"
Loaded="MainPage_Loaded"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="125"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Margin="4">First name:</TextBlock>
<TextBox Grid.Row="0" Grid.Column="1" Margin="4" Text="{Binding FirstName, Mode=TwoWay}"/>
<TextBlock Grid.Row="1" Grid.Column="0" Margin="4">Last name:</TextBlock>
<TextBox Grid.Row="1" Grid.Column="1" Margin="4" Text="{Binding LastName, Mode=TwoWay}"/>
<TextBlock Grid.Row="2" Grid.Column="0" Margin="4">Full name:</TextBlock>
<TextBlock Grid.Row="2" Grid.Column="1" Margin="4" Text="{Binding FullName}"/>
</Grid>
</UserControl>