Filtering another way

Scenario:
I want to filter MyVideoNav with Genre using my own custom dialog.

How do I determine list of Genres applicable to the currently displayed movies?
How do I apply genre filter to MyVIdeoNav?