Visual Basic (Declaration) | |
---|---|
Public Property PathFilter As Func(Of String,String) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As PathToImageSourceConverter Dim value As Func(Of String,String) instance.PathFilter = value value = instance.PathFilter |
C# | |
---|---|
public Func<string,string> PathFilter {get; set;} |
C++/CLI | |
---|---|
public: property Func<String^,String^>^ PathFilter { Func<String^,String^>^ get(); void set ( Func<String^,String^>^ value); } |
Property Value
The morphed string or null if there is no image.Replace with your own version if you need to manipulate the nominal filepath as you might if the filepath is an image name and you will prefix it with a base path.
PathToImageSourceConverter.PathFilter = path => "/MyApp;component/assets/" + path.Trim();
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family