In my application I am able to load plugins, i.e. use reflection look in an
assembly for classes implementing a given interface and instantiate them.

I would like these plugins to run with restricted right.
Like they are not able to access the file system, etc....
How could I do that?


Also, from some prelimiary reading it seems I will have to run thess plugin
in different AppDomain, but these plugin need to create some WPF.Controls
I'm adding to my main form's visual tree hierachy.
Is it possible to do that? I mean add in the UITree a WPF.Control which is
from a different AppDomain?
(I foresee a dispatcher problem)

Any tip? (or maybe I don't need to run my plugin in a different AppDomain
after all?)