DynamicsBaseHostedControl.SetVisualProperty Method
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)
Usage
'Usage
Dim elementName As String
Dim property As String
Dim value As String
Dim returnValue As Boolean
returnValue = Me.SetVisualProperty(elementName, property, value)
Syntax
'Declaration
Protected Overridable Function SetVisualProperty ( _
elementName As String, _
property As String, _
value As String _
) As Boolean
protected virtual bool SetVisualProperty (
string elementName,
string property,
string value
)
protected:
virtual bool SetVisualProperty (
String^ elementName,
String^ property,
String^ value
)
protected boolean SetVisualProperty (
String elementName,
String property,
String value
)
protected function SetVisualProperty (
elementName : String,
property : String,
value : String
) : boolean
Parameters
- elementName
The name of the UI element for which you want to set the property such as Expander, StackPanel, and Grid.
- property
The name of the property for the specified element that you want to set such as Height, Width, Visibility, and Color.
- value
Specify the appropriate value for the specified property. Supported value types for this parameter are string, enumeration, integer, or bool.
Return Value
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
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
DynamicsBaseHostedControl Class
DynamicsBaseHostedControl Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Other Resources
Panel Layout (Hosted Control)
UIElement
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.