private void Types_ListView_ItemClick(object sender, ItemClickEventArgs e) { clickedItem = (InsuranceType)e.ClickedItem; Insurances = InsurManager.GetInsurances(clickedItem.category); DisplayType = clickedItem.category; // this.contentControl.Content = new UserControl(); }
public InsuranceOverview() { this.InitializeComponent(); this.DataContext = this; //this.contentControl.Content = new UserControl(); // Get data InsurManager = new InsuranceManager(); insurances = InsurManager.GetInsurances(); InsuranceTypes = InsurTypeManager.GetTypes(); }