Presentation tier foundation
Let's start things off by creating the visual layout of our application by following these steps:
Start a new Visual Studio instance.
Create a new WPF application project called
Northwind.UI.WPF
, and name the solutionNorthwind
.Add a folder to
Northwind.UI.WPF
calledSkins
, and add a newResource Dictionary (WPF)
file to that folder calledMainSkin.xaml
.Open
MainWindow.xaml
for editing and update it as follows:<Window x:Class="Northwind.UI.WPF.MainWindow" xmlns="http://schemas.microsoft.com/winfx/ 2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" MinHeight="350" MinWidth="525" xmlns:ViewModel="clr-namespace:Northwind.ViewModel; assembly=Northwind.ViewModel" DataContext="{Binding Source={x:Static ViewModel:ViewModelLocator .MainWindowViewModelStatic}}"> <Window.Resources> <ResourceDictionary...