Cocktail Help Reference
PathFilter Property
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > PathToImageSourceConverter Class : PathFilter Property



Glossary Item Box

Filter or otherwise transform the incoming image filepath into an application-appropriate URI string.

Syntax

Visual Basic (Declaration) 
Public Property PathFilter As Func(Of String,String)
Visual Basic (Usage)Copy Code
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.

Remarks

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.

Example

PathToImageSourceConverter.PathFilter = path => "/MyApp;component/assets/" + path.Trim();

Requirements

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

See Also

© 2013 All Rights Reserved.