WPF groupbox visibility by combobox value selected
-
private void combogroup_SelectionChanged(object sender, SelectionChangedEventArgs e)
{------binded combobox
category ca = new category();
strCurCatGroup = combogroup.SelectedValue.ToString().Trim();
ca.changecategory(strCurCatGroup);//change category is my method}
private void changecategory(string strCategoryGroup)
{switch(---)
{
case "A":
groupbox1.visibility=Visibility.Hidden;
groupbox2.visibility=Visibility.Visible;--
case "B":groupbox1.visibility=Visibility.Visible;
groupbox2.visibility=Visibility.Hidden
//groupbox 1 and grpbox 2 contain different controls and i am able to execute the cases properly but the result is not getting.
} -
private void combogroup_SelectionChanged(object sender, SelectionChangedEventArgs e)
{------binded combobox
category ca = new category();
strCurCatGroup = combogroup.SelectedValue.ToString().Trim();
ca.changecategory(strCurCatGroup);//change category is my method}
private void changecategory(string strCategoryGroup)
{switch(---)
{
case "A":
groupbox1.visibility=Visibility.Hidden;
groupbox2.visibility=Visibility.Visible;--
case "B":groupbox1.visibility=Visibility.Visible;
groupbox2.visibility=Visibility.Hidden
//groupbox 1 and grpbox 2 contain different controls and i am able to execute the cases properly but the result is not getting.
}Pray tell me sir, why have you dumped a bunch of code in our forum? See that is a question, it is what we use when trying to get some help in a forum!
Never underestimate the power of human stupidity RAH
-
Pray tell me sir, why have you dumped a bunch of code in our forum? See that is a question, it is what we use when trying to get some help in a forum!
Never underestimate the power of human stupidity RAH
so,can u help me how to do ?
-
so,can u help me how to do ?
Can I help you to do what you have not asked a question, explained what you want or described what your problem is. All you have done is dump some poorly written code into the forum. Read the guidelines at the top of the page on how to ask a question! And please don't use txt speak.
Never underestimate the power of human stupidity RAH