C# WPF ComboBox Mouse over color

前端 未结 4 1636
后悔当初
后悔当初 2021-01-18 07:49

When the mouse hover over my ComboBox, I get an awful blue/lightblue pair of color for the backgroung of my ComboBox. I tried the solutions here :ComboBox Mouse over color,

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 08:42

    There it no item in my ComboBox in the test project. I just hover the mouse over it and the whole control is blue. Here is the .cs

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    
    namespace WpfApplication1
    {
        /// 
        /// Logique d'interaction pour MainWindow.xaml
        /// 
        public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
            }
        }
    }
    

    Here is the xaml :

    
        
            
                
                    
                        
                    
                
            
    
        
    
    

提交回复
热议问题