OPC Studio User's Guide and Reference
GetComponentBag Method



OpcLabs.BaseLibPresentation Assembly > OpcLabs.BaseLib.Presentation.ComponentModel Namespace > Live Class : GetComponentBag Method
The element from which the property value is read.

The value of this parameter cannot be null (Nothing in Visual Basic).

Gets the value of the ComponentBag attached property for a specified System.Windows.Window or System.Windows.Controls.Page or System.Windows.Controls.UserControl.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<BrowsableAttribute(False)>
<AttachedPropertyBrowsableForTypeAttribute(System.Windows.Window)>
Public Shared Function GetComponentBag( _
   ByVal element As FrameworkElement _
) As ComponentBag
'Usage
 
Dim element As FrameworkElement
Dim value As ComponentBag
 
value = Live.GetComponentBag(element)
[CanBeNull()]
[Browsable(false)]
[AttachedPropertyBrowsableForType(System.Windows.Window)]
public static ComponentBag GetComponentBag( 
   FrameworkElement element
)
[CanBeNull()]
[Browsable(false)]
[AttachedPropertyBrowsableForType(System.Windows.Window)]
public:
static ComponentBag^ GetComponentBag( 
   FrameworkElement^ element
) 

Parameters

element
The element from which the property value is read.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

The ComponentBag property value for the element.

This method can return null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also