private void BindData if views ContainsKey PanelSelector SelectedValue

1
2
3
4
5
6
7
8
private void BindData()
{
if (views.ContainsKey(PanelSelector.SelectedValue))
MultiView.SetActiveView(views[PanelSelector.SelectedValue]);
else
MultiView.ActiveViewIndex = 0;
Header.Text = PanelSelector.SelectedValue;
}