private static void OnCaptureChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { TextComboBox textComboBox = d as TextComboBox; textComboBox.OnCaptureChanged(e); }
private void BrushComboBox_Selected(object sender, RoutedEventArgs e) { TextComboBox comboBox = (TextComboBox)sender; Image brushImage = (Image)this.FindName("SelectedBrushImage"); ContentControl selectedItem = (ContentControl)comboBox.SelectedItem; brushImage.Source = ((Image)selectedItem.Content).Source; }