UserControl design

I have to write a new UserControl for AccountManagement. To integrate in your application with several TabItems my UserControl has to implement the IModule interface which looks something like:

public interface IModule : INotifyPropertyChanged
{
  FrameworkElement TabContent { get; }
  ImageSource TabIcon { get; }
  string TabTitle { get; }
}

I want to build the UserControl for AccountManagement with MVVM so I want to implement the IModule interface in my ViewModel.

My two questions are:

  1. Is this a good solution, or should I prefer to implement IModule in my View-CodeBehind?

  2. If I implement IModule in the ViewModel, how can I pass the View as TabContent to the parent?


Download usercontrol.design.zip
Direct Link


Download


Download usercontrol.design.zip
Mediafire


Download


Download usercontrol.design.zip
Fileswap


Download


Download usercontrol.design.zip
Crocko


Download


Download usercontrol.design.zip
Mightyupload


Download

Both comments and pings are currently closed.

Comments are closed.