Imagine i keep the below code in button click...
if(condition==true)
{
Panel1.Visibility = Visibility.Visible;
Panel.Visibility = Visibility.Collapsed;
}
else
{
Panel.Visibility = Visibility.Visible;
Panel1.Visibility = Visibility.Collapsed;
}
works for the first time and then one of the panel collapses but the other panel doesnt become visible...
any ideas why this is happening ?