| 1234567891011121314151617181920212223242526272829 |
- <Window x:Class="Awesomeness.GUI.Views.MainView"
- 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:Awesomeness.GUI"
- xmlns:viewmodels="clr-namespace:Awesomeness.GUI.ViewModels"
- d:DataContext="{d:DesignInstance Type=viewmodels:MainViewModel}"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <Button Grid.Column="0" Grid.Row="0" Content="Clear" Command="{Binding ResetNameCommand}"/>
- <Label Grid.Column="0" Grid.Row="1" Content="{Binding FirstName}" />
- <TextBox Grid.Column="0" Grid.Row="2" Text="{Binding FirstName, UpdateSourceTrigger=PropertyChanged}" />
- <Button Grid.Column="1" Grid.Row="2" Content="Set model" Command="{Binding SetNameCommand}"/>
- <Button Grid.Column="2" Grid.Row="2" Content="Get from model" Command="{Binding GetNameCommand}"/>
- </Grid>
- </Window>
|