C# Class WPFLocalizeExtension.Engine.SafeTargetInfo

An extension to the XAMLMarkupExtensions.Base.TargetInfo class with WeakReference instead of direct object linking.
Inheritance: TargetInfo
Exibir arquivo Open project: SeriousM/WPFLocalizationExtension

Public Methods

Method Description
FromTargetInfo ( TargetInfo targetInfo ) : SafeTargetInfo

Creates a new SafeTargetInfo based on a XAMLMarkupExtensions.Base.TargetInfo template.

SafeTargetInfo ( object targetObject, object targetProperty, Type targetPropertyType, int targetPropertyIndex ) : System

Creates a new TargetInfo instance.

Method Details

FromTargetInfo() public static method

Creates a new SafeTargetInfo based on a XAMLMarkupExtensions.Base.TargetInfo template.
public static FromTargetInfo ( TargetInfo targetInfo ) : SafeTargetInfo
targetInfo TargetInfo The target information.
return SafeTargetInfo

SafeTargetInfo() public method

Creates a new TargetInfo instance.
public SafeTargetInfo ( object targetObject, object targetProperty, Type targetPropertyType, int targetPropertyIndex ) : System
targetObject object The target object.
targetProperty object The target property.
targetPropertyType System.Type The target property type.
targetPropertyIndex int The target property index.
return System