T
the type of the desired resource
Northwoods.GoSilverlight 1.2.2 Assembly
FindResource<T> Method
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : FindResource<T> Method

start
a FrameworkElement
name
the name of the desired resource
This static method looks for a resource of type T.

Syntax

Visual Basic (Declaration) 
Public Shared Function FindResource(Of T)( _
   ByVal start As FrameworkElement, _
   ByVal name As String _
) As T
C# 
public static T FindResource<T>( 
   FrameworkElement start,
   string name
)

Parameters

start
a FrameworkElement
name
the name of the desired resource

Type Parameters

T
the type of the desired resource

Return Value

the first object of type T found in searching the ResourceDictionary of the start element or in its parent elements, or null if no resource by that name is found, or if it is found but is not of the desired type.

Requirements

See Also

© 2010 All Rights Reserved.