Clock.Desktop/Views/MainWindow.xaml (18 lines of code) (raw):

<Window x:Class="Clock.Desktop.Views.MainWindow" x:ClassModifier="internal" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:viewModels="clr-namespace:Clock.ViewModels;assembly=Clock" xmlns:desktop="clr-namespace:Clock.Desktop"> <Window.Resources> <desktop:DataProvider x:Key="ClockViewModel" ObjectType="{x:Type viewModels:IClockViewModel}" /> </Window.Resources> <Grid DataContext="{StaticResource ClockViewModel}"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <!-- ReSharper disable once Xaml.BindingWithContextNotResolved --> <TextBlock Text="{Binding Date}" FontSize="64" /> <!-- ReSharper disable once Xaml.BindingWithContextNotResolved --> <TextBlock Text="{Binding Time}" FontSize="64" /> <StackPanel.Effect> <DropShadowEffect Color="Black" Direction="20" ShadowDepth="5" Opacity="0.5"/> </StackPanel.Effect> </StackPanel> </Grid> </Window>