DesignerActionUIService Class
Assembly: System.Design (in system.design.dll)
You can control the display of your designer's ActionLists with the DesignerActionUIService class. DesignerActionUIService provides a straightforward interface for displaying the items for each component, including the following methods and events:
-
The ShowUI and HideUI methods display and hide the items for a component.
-
The DesignerActionUIStateChange event indicates when the UI changes for a component.
Use the DesignerActionService to manage the DesignerActionList collections associated with your component.
The following code example demonstrates how to use the Refresh method to update a smart tag panel. This example is part of a larger example available in the DesignerActionService class overview.
'Boolean properties are automatically displayed with binary ' UI (such as a checkbox). Public Property LockColors() As Boolean Get Return colLabel.ColorLocked End Get Set(ByVal value As Boolean) GetPropertyByName("ColorLocked").SetValue(colLabel, value) ' Refresh the list. Me.designerActionUISvc.Refresh(Me.Component) End Set End Property
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Reference
DesignerActionUIService MembersSystem.ComponentModel.Design Namespace
ShowUI
System.ComponentModel.Design.DesignerActionService.Add
System.ComponentModel.Design.DesignerActionService.Remove
ComponentDesigner.ActionLists Property