blob: d0e3c22c65f75ec1bd8aaf90b50d8b8f72d4a27d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
namespace System.Activities.Core.Presentation.Factories
{
using System.Activities.Presentation;
using System.Windows;
public sealed class PickWithTwoBranchesFactory : IActivityTemplateFactory
{
public Activity Create(DependencyObject target)
{
return new System.Activities.Statements.Pick
{
Branches =
{
new System.Activities.Statements.PickBranch
{
DisplayName = "Branch1"
},
new System.Activities.Statements.PickBranch
{
DisplayName = "Branch2"
}
}
};
}
}
}
|