dapplo / Dapplo.CaliburnMicro

Dapplo.CaliburnMicro is a Caliburn bootstrapper (and more) to quickly start with a WPF MVVM Application
GNU Lesser General Public License v3.0
21 stars 7 forks source link

Add something which supports roles & rights. #3

Open Lakritzator opened 7 years ago

Lakritzator commented 7 years ago

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

Lakritzator commented 7 years ago

Created a package Dapplo.CaliburnMicro.Security which does most stuff I need, still needs documentation