Exemple #1
0
        private static void OnCaptureChanged(DependencyObject d,
                                             DependencyPropertyChangedEventArgs e)
        {
            TextComboBox textComboBox = d as TextComboBox;

            textComboBox.OnCaptureChanged(e);
        }
Exemple #2
0
        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;
        }