private void CreateBindings_Click(object sender, RoutedEventArgs e) { Binding fontBinding = new Binding(); fontBinding.Source = fontBox; fontBinding.Path = new PropertyPath("Text"); fontBinding.Mode = BindingMode.OneWay; DisplayText.SetBinding(FontFamilyProperty, fontBinding); Binding weightBinding = new Binding(); weightBinding.Source = weightBox; weightBinding.Path = new PropertyPath("Text"); weightBinding.Mode = BindingMode.OneWay; DisplayText.SetBinding(FontWeightProperty, weightBinding); }