I have a number of bindings that resemble the below code.
The bindings work fine from UI to property but wont work when I set the property in the back end code. Im not sure what's wrong here because I do have Mode=TwoWay in my XAML
public partial class app_controls : PhoneApplicationPage, INotifyPropertyChanged
{
private String _ipAddress;
public String ipAddressOrDomain
{
get { return _ipAddress; }
set { _ipAddress = value; NotifyPropertyChanged("ipAddressOrDomain"); }
}
private void NotifyPropertyChanged(String propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
I am clearly binding both ways so I have no idea what the problem is.
<telerikPrimitives:RadTextBox BorderBrush="Black" Background="Beige" Watermark="IP Address or Domain" Text="{Binding ipAddressOrDomain, Mode=TwoWay}" TextWrapping="Wrap" Visibility="{Binding traceToolVis}" InputScope="Url"/>