Parameterized constructor in view model not working

Posted by rajcool111 on Stack Overflow See other posts from Stack Overflow or by rajcool111
Published on 2012-04-12T23:23:51Z Indexed on 2012/04/12 23:28 UTC
Read the original article Hit count: 214

Filed under:

I have one small issue. in my view model parameterized constructor is not working. while debugging i observed that default constructor get hit but it never triggers my parameterized constructor. How I can get my parameterized constructor working?

public EmployeeRequestViewModel(IEventAggregator eventAggregator, IContextManager contextmanager):this()
    {
        _contextmanager = contextmanager;
        _eventAgg = eventAggregator;
        _eventAgg.GetEvent<EmployeeEvent>().Subscribe(EventTask);
    }

    public EmployeeRequestViewModel()
    {
        LoadEmpRequest();

    }

© Stack Overflow or respective owner

Related posts about wpf