Having a basic generic implementation, where it's possible to use annotations on elements to specify the behaviour on what to do if a right is missing.
Example
[Export("systemtray", typeof(IMenuItem))]
[NeedsRights(Behavior.Disable, "Config")]
public class ConfigureMenuItem : MenuItem
and:
[Export("systemtray", typeof(IMenuItem))]
[NeedsRights(Behavior.Invisible, "Config")]
public class ConfigureMenuItem : MenuItem
Having a basic generic implementation, where it's possible to use annotations on elements to specify the behaviour on what to do if a right is missing.
Example [Export("systemtray", typeof(IMenuItem))] [NeedsRights(Behavior.Disable, "Config")] public class ConfigureMenuItem : MenuItem
and: [Export("systemtray", typeof(IMenuItem))] [NeedsRights(Behavior.Invisible, "Config")] public class ConfigureMenuItem : MenuItem