Dapplo.CaliburnMicro
Dapplo.CaliburnMicro copied to clipboard
Add something which supports roles & rights.
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
Created a package Dapplo.CaliburnMicro.Security which does most stuff I need, still needs documentation