private void CreateBindings() { FileTextBox.SetBinding(TextBox.TextProperty, new Binding("File") { Source = _model, Mode = BindingMode.OneWay }); ItemComboBox.SetBinding(ItemsControl.ItemsSourceProperty, new Binding("Items") { Source = _model, Mode = BindingMode.OneWay }); ItemComboBox.SetBinding(Selector.SelectedItemProperty, new Binding("Item") { Source = _model, Mode = BindingMode.TwoWay }); _model.ItemChanged += SelectedItemChanged; SaveButton.SetBinding(IsEnabledProperty, new Binding("SaveButtonEnabled") { Source = _model, Mode = BindingMode.OneWay }); }