Add custom auto submit and auto cancel to a Silverlight form using Visual Studio

If a form is created in Visual Studio rather than the Designer, custom submit and cancel buttons can be configured.

Before you begin

Procedure

  1. Open the form in Visual Studio.
  2. Browse to the Silverlight folder of the Proficy Workflow installation directory, and then open the MainForm.xaml file.
  3. In the References section of the project, add a reference to DisplayFramework.
  4. For each Tasks List button that will be hidden, add the appropriate visibility-attached property to the form.
    <UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Name="RootElement"
    xmlns:vpic="clr-namespace:VantagePoint.InputControls;assembly=StatusControls" 
    xmlns:ppcdff="clr-
    namespace:Proficy.Platform.Core.DisplayFramework.Forms;assembly=Proficy.Platform.Core.DisplayFramework" 
    ppcdff:FormProperties.IsSubmitVisible="False"
    ppcdff:FormProperties.IsCancelVisible="False"
    x:Class="SampleForm_VSSL.MainPage">
    <UserControl.Content>
  5. To add code-designed forms to a workflow, see Configure a Form activity.