Exemple #1
0
        void InitDataSource()
        {
            Employees =
                NWindContext.Create().Employees.ToList()
                .Select(x => EmployeeWrapper.Create(x)).ToList();

            int i = 0;

            foreach (var employee in Employees)
            {
                employee.BackgroundColor        = ColorPalette.GetColor(i, 100);
                employee.BackgroundColor        = ColorHelper.Brightness(employee.BackgroundColor, 0.3);
                employee.BackgroundColorOpacity = 180;
                i++;
            }
        }