Hi telerick
I use MVVM to Binding the SelectedColor Property,but When I change the color, there don't work,the VM's property don't change,How can I do?
the VM code
I use MVVM to Binding the SelectedColor Property,but When I change the color, there don't work,the VM's property don't change,How can I do?
telerik:RadColorPicker SelectedColor="{Binding SuspectColor}" BorderThickness="0" MainPalette="Concourse" HeaderPalette="Solstice" NoColorText="{Resx RadColorPic_NoColorText}"
StandardPaletteHeaderText="{Resx RadColorPic_StandardPaletteHeaderText}" MainPaletteHeaderText="{Resx RadColorPic_MainPaletteHeaderText}" />
the VM code
private
string
_suspectColor;
public
string
SuspectColor
{
get
{
if
(_projectConfiguration !=
null
)
{
_suspectColor = _projectConfiguration.SuspectColor;
}
return
_suspectColor;
}
set
{
_suspectColor = value;
_project.SavaImageTabConfig(
"SuspectColor"
, value.ToString());
base
.OnPropertyChanged(
"SuspectColor"
);
}
}