I'm trying to add a few custom tab pages to the property pages of a DirectShow filter (which I displayed using OleCreatePropertyFrame
).
Is implementing ISpecifyPropertyPages
the correct way to do this? If so, how do I do this in C#? Namely, what do I do in the GetPages
method?
ISpecifyPropertyPages
is the interface which is used to expose/discover the property page applicable to the object. Its GetPages
method list the pages that belong to the instance in question.
In your case you not only should implement this interface and method (see example and related discussion), but you also need to implement the property page itself. DirectShow.NET does not offer you a base for reuse (in C++ development you have two of these: DirectShow BaseClasses offer property page base, and so does ATL), so you need to implement it from scratch. This C# code snippet looks like a good start.