Hi,
fix your code:
class Equity : INotifyPropertyChanged { private ComboBoxItem country; public ComboBoxItem Country { get { return country; } set { country = value; OnPropertyChanged("Country"); } } public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } }
<TextBox x:Name="Txtbx1" Width="500" Height="30" Text="{Binding Path = Country.Content}"></TextBox>
Best Regards,
Alex
"Windows Presentation Foundation" forum will be migrating to a new home onMicrosoft Q&A (Preview)!
We invite you to post new questions in the "Developing Universal Windows apps" forum’s new home on
Microsoft Q&A (Preview)!
For more information, please refer to the
sticky post.