TypePresenter.Filter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the filter used to show types.
public:
property Func<Type ^, bool> ^ Filter { Func<Type ^, bool> ^ get(); void set(Func<Type ^, bool> ^ value); };
public Func<Type,bool> Filter { get; set; }
member this.Filter : Func<Type, bool> with get, set
Public Property Filter As Func(Of Type, Boolean)
Property Value
A delegate with one return value and a Boolean value that represents the filter used to show types.
Remarks
By default, the following types are shown in the type presenter/type browser
Project system case
All public types in referenced assemblies/projects
All public types in current project
Standalone XAML case (file in rehosted application/file opened in Visual Studio without solution opened)
- All public types in all assemblies loaded in the AppDomain
By setting the filter property, you can limit the number of types shown in the type browser to only those types that are valid for your activity.