Exemplo n.º 1
0
        public ComboBoxDemo()
        {
            InitializeComponent();
            var dataContent    = new AlarmInfo();
            var listWarmColors = ColorInfo.GetColorData();

            dataContent.SelectedColor = listWarmColors[2];

            colorComboBox.DataContext  = dataContent;
            colorComboBox2.DataContext = dataContent;
            colorComboBox3.DataContext = dataContent;
        }
Exemplo n.º 2
0
 public AlarmInfo()
 {
     AllColors = ColorInfo.GetColorData();
 }