Northwoods.GoWPF 2.2.4 Assembly
FindDefault<T> Method

the type of the desired resource
This static method finds a default diagram resource of type T.
Syntax
Public Shared Function FindDefault(Of T)( _
   ByVal name As String _
) As T
public static T FindDefault<T>( 
   string name
)

Parameters

name

Type Parameters

T
the type of the desired resource

Return Value

null if no resource can be found with the name name or if it does exist but is not of type T
Remarks
This is different from something like myDiagram.TryFindResource("DefaultSelectionAdornmentTemplate") in that it only considers the predefined Diagram default DataTemplates and Styles, defined in Generic.xaml.
Requirements
See Also

Reference

Diagram Class
Diagram Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback