public void Initialize()
 {
     var petRepository = _container.Resolve<PetRepository>();
     var historyViewModel = new HistoryViewModel(petRepository);
     _regionManager.Regions["HistoryRegion"].Add(new HistoryPanel(historyViewModel));
 }
 public HistoryPanel(HistoryViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }