예제 #1
0
        public void RegisterBuiltInPropertyEditors()
        {
            if (_registeredBuiltInPropertyEditors)
            {
                return;
            }

            _profileEditorService.RegisterPropertyInput <BrushPropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <ColorGradientPropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <FloatPropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <IntPropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <SKColorPropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <SKPointPropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <SKSizePropertyInputViewModel>(Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput(typeof(EnumPropertyInputViewModel <>), Constants.CorePluginInfo);
            _profileEditorService.RegisterPropertyInput <BoolPropertyInputViewModel>(Constants.CorePluginInfo);

            _registeredBuiltInPropertyEditors = true;
        }
예제 #2
0
 public override void Enable()
 {
     _profileEditorService.RegisterPropertyInput <FilePathPropertyDisplayViewModel>(Plugin);
     RegisterLayerBrushDescriptor <GifLayerBrush>("Gif layer brush", "Gif layer brush", "Gif");
 }
 public override void EnablePlugin()
 {
     _profileEditorService.RegisterPropertyInput <StringPropertyInputViewModel>(PluginInfo);
     RegisterLayerBrushDescriptor <RgbNetColorBrush>("RGB.NET Color", "A RGB.NET based color", "Brush");
 }