Example #1
0
        public Color()
        {
            InitializeComponent();
            this.ColorSelector = new ObservableCollection <ColorSelect>();
            var properties = typeof(Colors).GetProperties();

            foreach (System.Reflection.PropertyInfo info in properties)
            {
                ColorSelector.Add(new ColorSelect {
                    Color = info.Name, Name = info.Name
                });
            }
            ListView1.ItemsSource = ColorSelector;
        }
Example #2
0
        public void TabTextColorSelector()
        {
            tlog.Debug(tag, $"TabTextColorSelector START");

            var testingTarget = new Tab();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Tab>(testingTarget, "Should return Tab instance.");

            var textColorSelector = new ColorSelector();

            textColorSelector.Add(ControlState.All, Color.Cyan);
            testingTarget.TextColorSelector = textColorSelector;
            tlog.Debug(tag, "TextColorSelector : " + testingTarget.TextColorSelector);

            testingTarget.Dispose();
            tlog.Debug(tag, $"TabTextColorSelector END (OK)");
        }