Partager via


DynamicsBaseHostedControl.SetVisualProperty(String, String, String) Method

Definition

Set the visual properties such as height, width, and visibility of a hosted control.

protected:
 virtual bool SetVisualProperty(System::String ^ elementName, System::String ^ property, System::String ^ value);
protected virtual bool SetVisualProperty (string elementName, string property, string value);
abstract member SetVisualProperty : string * string * string -> bool
override this.SetVisualProperty : string * string * string -> bool
Protected Overridable Function SetVisualProperty (elementName As String, property As String, value As String) As Boolean

Parameters

elementName
String

The name of the UI element for which you want to set the property such as Expander, StackPanel, and Grid.

property
String

The name of the property for the specified element that you want to set such as Height, Width, Visibility, and Color.

value
String

Specify the appropriate value for the specified property. Supported value types for this parameter are string, enumeration, integer, or bool.

Returns

Returns Boolean

Remarks

This method is specifically useful for UI automation, such as automatically displaying or hiding a panel. Familiarity with XAML and Unified Service Desk layout is required for effectively using this action

Applies to