Hi telerik team,
I have created my own control, which uses a RadCombo Box control, but for my control I have a double property called ControlWidth (for which I am raising a property changed event). I use this property to set my RadCOmboBox's width. Now the problem is, the width I am specifying does not seem to work.. when I try to bind to it.., it does not pick up the value I pass to the usercontrol..
Below is what I am doing... in the usercontrol (My User control has the below radCombo box and Binding)
Within the Code behind of UserControl have put in this property, so that I can set this property via my usercontrol
Please advice what I am doing wrong here, that the binding is not being picked up.
I have created my own control, which uses a RadCombo Box control, but for my control I have a double property called ControlWidth (for which I am raising a property changed event). I use this property to set my RadCOmboBox's width. Now the problem is, the width I am specifying does not seem to work.. when I try to bind to it.., it does not pick up the value I pass to the usercontrol..
Below is what I am doing... in the usercontrol (My User control has the below radCombo box and Binding)
<telerikInput:RadComboBox x:Name="referenceDataComboBox" Grid.Column="0" Width="{Binding ControlWidth}"
Within the Code behind of UserControl have put in this property, so that I can set this property via my usercontrol
private string controlWidth = "0";
public string ControlWidth
{
get
{
return this.controlWidth;
}
set
{
this.controlWidth = value;
this.RaisePropertyChanged("Width");
}
}
Please advice what I am doing wrong here, that the binding is not being picked up.