Northwoods.GoSilverlight 1.1.3 Assembly
FindPort Method
See Also  Send Feedback
Northwoods.GoXam Namespace > Node Class : FindPort Method

portid
This treats null as an empty string. The method returns the element whose Node.GetPortId value equals that string. If there is no such child element, it searches for an element whose Node.GetPortId value is the empty string. Finally, when failing to find a port with either the given name or the empty string, this method returns the root visual element for the node.
from
Find the FrameworkElement in this node whose Node.PortId attached property matches a given port parameter value.

Syntax

Visual Basic (Declaration) 
Public Overridable Function FindPort( _
   ByVal portid As String, _
   ByVal from As Boolean _
) As FrameworkElement
C# 
public virtual FrameworkElement FindPort( 
   string portid,
   bool from
)

Parameters

portid
This treats null as an empty string. The method returns the element whose Node.GetPortId value equals that string. If there is no such child element, it searches for an element whose Node.GetPortId value is the empty string. Finally, when failing to find a port with either the given name or the empty string, this method returns the root visual element for the node.
from

Return Value

a FrameworkElement, or null if no matching element is found

See Also