WorkflowView Class
Provides a design surface, which renders a visual representation of process flow.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
'Declaration <ActivityDesignerThemeAttribute(GetType(AmbientTheme), Xml := "<AmbientTheme xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow" ApplyTo="System.Workflow.ComponentModel.Design.WorkflowView" ShowConfigErrors="True" DrawShadow="False" DrawGrayscale="False" DropIndicatorColor="0xFF006400" SelectionForeColor="0xFF0000FF" SelectionPatternColor="0xFF736D63" ForeColor="0xFF808080" BackColor="0xFFFFFFFF" ShowGrid="False" GridColor="0xFFC0C0C0" TextQuality="Aliased" DrawRounded="True" ShowDesignerBorder="True" />")> _ Public Class WorkflowView _ Inherits UserControl _ Implements IServiceProvider, IMessageFilter 'Usage Dim instance As WorkflowView
WorkflowView is the design surface which renders a visual representation of process flow described in workflow markup. WorkflowView offers a rich set of user interface functionality needed by the activity designers for rendering and for responding to various Windows-generated events. Also, the WorkflowView offers a set of common functions which can be used by all designers to perform certain activities.
The following code example demonstrates how you can obtain an instance of the WorkflowView class using the GetView method. The code then sets several WorkflowView properties, including HScrollBar and VScrollBar, and calls the FitToScreenSize method.
This code example is part of the Workflow Tracking Profile Designer SDK Sample from the WorkflowDesignerControl.cs file. For more information, see Workflow Tracking Profile Designer.
Dim designerHost As IDesignerHost = CType(designSurface.GetService(GetType(IDesignerHost)), IDesignerHost) If designerHost IsNot Nothing AndAlso designerHost.RootComponent IsNot Nothing Then Dim rootDesigner As IRootDesigner = TryCast(designerHost.GetDesigner(designerHost.RootComponent), IRootDesigner) If rootDesigner IsNot Nothing Then UnloadWorkflow() Me.designSurface = designSurface Me.loader = loader Me.workflowView = TryCast(rootDesigner.GetView(ViewTechnology.Default), WorkflowView) Me.panel1.Controls.Add(Me.workflowView) Me.workflowView.Dock = DockStyle.Fill Me.workflowView.TabIndex = 1 Me.workflowView.TabStop = True Me.workflowView.HScrollBar.TabStop = False Me.workflowView.VScrollBar.TabStop = False Me.workflowView.Focus() Me.workflowView.FitToScreenSize() End If End If
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.UserControl
System.Workflow.ComponentModel.Design.WorkflowView
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.