Hello telerik.
I am using RadControls for Silverlight Q1 2012 SP1.
And found there is a issue about RadMenuItem IsEnableProperty Binding.
I did a project like this.
When I start the project, the menu IsEnableProperty is false, i clicked the button, it becomes true. When i click the button again, It never becomes false.
Was there something wrong with what i did?
I am using RadControls for Silverlight Q1 2012 SP1.
And found there is a issue about RadMenuItem IsEnableProperty Binding.
I did a project like this.
<telerik:RadMenu>
<telerik:RadMenu.Items>
<telerik:RadMenuItem x:Name=
"test"
Header=
"制御"
IsEnabled=
"{Binding IsEnableMenu}"
/>
</telerik:RadMenu.Items>
</telerik:RadMenu>
<Button Content=
"Test"
Click=
"Button_Click"
/>
public
partial
class
MainPage : UserControl
{
MainViewModel _mainView;
public
MainPage()
{
InitializeComponent();
this
._mainView =
new
MainViewModel();
this
.DataContext =
this
._mainView;
}
private
void
HousasToolBarItem_Click(
object
sender, Telerik.Windows.RadRoutedEventArgs e)
{
this
._mainView.IsEnableMenu = !
this
._mainView.IsEnableMenu;
}
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
this
._mainView.IsEnableMenu = !
this
._mainView.IsEnableMenu;
}
}
public
class
MainViewModel : ViewModelBase
{
public
bool
IsEnableMenu
{
get
{
return
isEnableMenu; }
set
{
isEnableMenu = value;
OnPropertyChanged(
"IsEnableMenu"
);
}
}
private
bool
isEnableMenu;
}
When I start the project, the menu IsEnableProperty is false, i clicked the button, it becomes true. When i click the button again, It never becomes false.
Was there something wrong with what i did?