Implementing designer layout
In this task, we will create a WF4 designer layout window. This is just a WPF window. When we finish this task, we will have built a designer window. Functions will be added to the window in the following tasks.
How to do it...
Create a WPF Application project:
Open a new Visual Studio 2010 instance and create a new WPF Application project. Name the project
WF4Designer
.Add the following three assembly references to the project:
System.Activities
,System.Activities.Core.Presentation
, andSystem.Activities.Presentation
.Create XAML layout code:
Open the
MainWindow.xaml
file, which is created by default. Fill the file with XAML code as follows:<Window x:Class="WF4Designer.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="600" Width="800"> <Grid> <Grid.RowDefinitions> <RowDefinition Height...