Hi,
I am having problem in enabling tabitems and switching between tabs through view model when using RadTabControl in silverlight 4.0.
I am having the following views and viewmodels
BaseViewmodel- Tabcontrol
Tab1Viewmodel-Tabitem1(usercontrol1)
Tab2Viewmodel-tabitem2(usercontrol2)
In my base view model, i am having the following property
private int m_currentstep
public int CurrentStep
{
get
{
return m_CurrentStep;
}
set
{
m_CurrentStep = value;
NotifyPropertyChanged(m => m.CurrentStep);
}
}
and i am binding this to selectedindex property of tabcontrol.
When i loaded this tabcontrol, tabitem1 should be displayed and tabitem2 should be disabled. Only when i click submit button in tabitem1, tabitem2 should be enabled and focus should be switched to tabitem2.
Both the tabviewmodels are derived from baseviewmodel. In button click event of tabitem1, i set currentstep=1(for tabitem2), but focus is not moved.. Also i have 2 more properties tabitem1enabled and tabitem2 enabled and i am binding this to Isenabled property of tabitems and set the value for tabitem2 =true in the same button click event. But tabitem2 is not enabled. Please let me know how this should be done using Rabtabcontrol?
I am having problem in enabling tabitems and switching between tabs through view model when using RadTabControl in silverlight 4.0.
I am having the following views and viewmodels
BaseViewmodel- Tabcontrol
Tab1Viewmodel-Tabitem1(usercontrol1)
Tab2Viewmodel-tabitem2(usercontrol2)
In my base view model, i am having the following property
private int m_currentstep
public int CurrentStep
{
get
{
return m_CurrentStep;
}
set
{
m_CurrentStep = value;
NotifyPropertyChanged(m => m.CurrentStep);
}
}
and i am binding this to selectedindex property of tabcontrol.
When i loaded this tabcontrol, tabitem1 should be displayed and tabitem2 should be disabled. Only when i click submit button in tabitem1, tabitem2 should be enabled and focus should be switched to tabitem2.
Both the tabviewmodels are derived from baseviewmodel. In button click event of tabitem1, i set currentstep=1(for tabitem2), but focus is not moved.. Also i have 2 more properties tabitem1enabled and tabitem2 enabled and i am binding this to Isenabled property of tabitems and set the value for tabitem2 =true in the same button click event. But tabitem2 is not enabled. Please let me know how this should be done using Rabtabcontrol?