public Categorias()
        {
            InitializeComponent();

            controller = Ioc.Instance.GetInstance <CategoriasController>();
            controller.Init(buttons);
            this.DataContext = controller;

            // events
            controller.EventNewRegister += new Delegates.RegisterNewEventHandler <Application.ViewModels.CategoriaViewModel>(NewCat);
            controller.EventValidation  += new Delegates.RegisterValidationEventHandler(CheckValidation);
        }