DynamicsBaseHostedControl.SetVisualProperty Method (String, String, String)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
Set the visual properties such as height, width, and visibility of a hosted control.
Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)
Syntax
protected virtual bool SetVisualProperty(
string elementName,
string property,
string value
)
Protected Overridable Function SetVisualProperty (
elementName As String,
property As String,
value As String
) As Boolean
Parameters
elementName
Type: System.StringThe name of the UI element for which you want to set the property such as Expander, StackPanel, and Grid.
property
Type: System.StringThe name of the property for the specified element that you want to set such as Height, Width, Visibility, and Color.
value
Type: System.StringSpecify the appropriate value for the specified property. Supported value types for this parameter are string, enumeration, integer, or bool.
Return Value
Type: System.Boolean
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
See Also
DynamicsBaseHostedControl Class
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Panel Layout (Hosted Control)
UIElement
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright