OneComputeWpfClient\Views\MainView.xaml
<Window
x:Class="OneComputeWpfClient.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"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Title="{Binding Path=Title}"
Height="400"
Width="650">
<Window.Resources>
<ResourceDictionary>
<!-- Styles -->
<Style x:Key="ButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Padding" Value="2" />
<Setter Property="MinWidth" Value="75" />
<Setter Property="MinHeight" Value="25" />
</Style>
</ResourceDictionary>
</Window.Resources>
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ListBox
Grid.Row="0"
ItemsSource="{Binding Path=LogEntries}"
ScrollViewer.VerticalScrollBarVisibility="Auto"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
Margin="0">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=Timestamp, StringFormat='g'}" Foreground="Gray" Margin="0,0,10,0" />
<TextBlock Text="{Binding Path=Message}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<StackPanel
Grid.Row="1"
Orientation="Horizontal"
HorizontalAlignment="Center"
Margin="0,10,0,0">
<Button
Content="Run"
Style="{StaticResource ButtonStyle}"
Margin="0,0,5,0"
Command="{Binding Path=RunCommand}" />
<Button
Content="Cancel"
Style="{StaticResource ButtonStyle}"
Command="{Binding Path=CancelCommand}" />
</StackPanel>
</Grid>
</Window>