Exemplo n.º 1
0
        public ItemSelectorPopupFormViewInfo(ItemSelectorPopupForm form)
            : base(form)
        {
            ShowSizeBar = Form.Properties.AllowResize;

            AppearanceColumnHeader = new AppearanceObject();
            AppearanceResults      = new AppearanceObject();
            AppearanceMatch        = new AppearanceObject();

            ColumnHeaderArgs = new List <HeaderObjectInfoArgs>();
            HeaderPainter    = Form.Properties.LookAndFeel.Painter.Header;

            //This looks nicer in many skins, but has bad padding.
            //HoverElement = NavPaneSkins.GetSkin(Form.Properties.LookAndFeel)[NavPaneSkins.SkinOverflowPanelItem];
            switch (Form.Properties.LookAndFeel.ActiveSkinName)
            {
            case "Darkroom":                            //Workaround for unsolveable issue - their ribbon button is transparent
                HoverElement = CommonSkins.GetSkin(Form.Properties.LookAndFeel)[CommonSkins.SkinButton];
                break;

            default:
                HoverElement = RibbonSkins.GetSkin(Form.Properties.LookAndFeel)[RibbonSkins.SkinButton];
                break;
            }

            LinePen = new Pen(Utilities.GetHeaderLineColor(form.Properties.LookAndFeel));
        }
Exemplo n.º 2
0
        private void PopupCanvas_Paint(object sender, PaintEventArgs e)
        {
            commonSkin = CommonSkins.GetSkin(UserLookAndFeel.Default);

            SkinElementInfo elemInfo = new SkinElementInfo(commonSkin[CommonSkins.SkinToolTipWindow], popupCanvas.ClientRectangle)
            {
                Cache = new GraphicsCache(e),
                State = ObjectState.Hot
            };

            SkinElementPainter.Default.DrawObject(elemInfo);

            if (DesignMode)
            {
                return;
            }

            string[] words = input.Text == DefaultText ? new string[0] : input.Text.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            for (var i = popupScroller.Value / lineHeight;
                 i < Math.Min(results.Count, (popupCanvas.Height + popupScroller.Value) / lineHeight + 1); i++)                         //For each visible row
            {
                bool selected = i == SelectedIndex && !resizeAnimator.Enabled && !IsAutoScrolling;
                //bool afterSelected = SelectedIndex >= 0 && i > SelectedIndex && !resizeAnimator.Enabled && !IsAutoScrolling;
                DrawRow(e.Graphics, results[i].Row, words, i * lineHeight - popupScroller.Value, selected);
            }
        }
Exemplo n.º 3
0
        static void Main()
        {
            //DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
            WindowsFormsSettings.DefaultFont  = new System.Drawing.Font("Segoe UI", 9);
            WindowsFormsSettings.ScrollUIMode = ScrollUIMode.Desktop;
            UserLookAndFeel.Default.SetSkinStyle(SettingsStore.Default.SelectedThemeName);
            WindowsFormsSettings.FormThickBorder = true;
            if (UserLookAndFeel.Default.SkinName == "The Bezier")
            {
                if (string.IsNullOrEmpty(SettingsStore.Default.SelectedPaletteName))
                {
                    SettingsStore.Default.SelectedPaletteName = "Gloom Gloom";
                }
                var skin = CommonSkins.GetSkin(UserLookAndFeel.Default);
                DevExpress.Utils.Svg.SvgPalette pallete = skin.CustomSvgPalettes[SettingsStore.Default.SelectedPaletteName];
                skin.SvgPalettes[Skin.DefaultSkinPaletteName].SetCustomPalette(pallete);
                LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(true);

            WindowsFormsSettings.ForceDirectXPaint();

            Application.Run(new MainForm());
        }
Exemplo n.º 4
0
        protected void DrawBody(ControlGraphicsInfoArgs info)
        {
            Rectangle bound       = (info.ViewInfo as ToggleSwitchViewInfo).BodyRectangle;
            Skin      currentSkin = EditorsSkins.GetSkin((info.ViewInfo as ToggleSwitchViewInfo).LookAndFeel);
            Rectangle bodyRect    = (info.ViewInfo as ToggleSwitchViewInfo).BodyRectangle;

            bodyRect.Inflate(-3, -3);
            currentSkin = CommonSkins.GetSkin((info.ViewInfo as ToggleSwitchViewInfo).LookAndFeel);
            SkinElement element     = currentSkin[CommonSkins.SkinTextBorder];
            Color       borderColor = element.Border.Top;

            info.Cache.FillRectangle(info.Cache.GetSolidBrush(DevExpress.LookAndFeel.LookAndFeelHelper.GetSystemColorEx((info.ViewInfo as ToggleSwitchViewInfo).LookAndFeel,
                                                                                                                        SystemColors.Control)), info.Bounds);
            Color skinBackColor = currentSkin.CommonSkin.Colors["Control"];

            if ((info.ViewInfo as ToggleSwitchViewInfo).BodyState == DevExpress.Utils.Drawing.ObjectState.Hot)
            {
                using (SolidBrush sb = new SolidBrush(ConvertColor(skinBackColor, 100))) {
                    info.Graphics.FillRectangle(sb, bodyRect);
                }
            }

            bound.Width--;
            bound.Height--;
            info.Graphics.DrawRectangle(new Pen(borderColor), bound);
        }
Exemplo n.º 5
0
        static void Main()
        {
            DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
            //SettingsStore.ApplicationDirectory = Path.GetDirectoryName(Application.ExecutablePath);
            WindowsFormsSettings.DefaultFont  = new System.Drawing.Font("Segoe UI", 9);
            WindowsFormsSettings.ScrollUIMode = ScrollUIMode.Desktop;
            UserLookAndFeel.Default.SetSkinStyle(SettingsStore.Default.SelectedThemeName);
            WindowsFormsSettings.FormThickBorder = true;
            if (UserLookAndFeel.Default.SkinName == "The Bezier")
            {
                if (string.IsNullOrEmpty(SettingsStore.Default.SelectedPaletteName))
                {
                    SettingsStore.Default.SelectedPaletteName = "VS Light";
                }
                var skin = CommonSkins.GetSkin(UserLookAndFeel.Default);
                DevExpress.Utils.Svg.SvgPalette pallete = skin.CustomSvgPalettes[SettingsStore.Default.SelectedPaletteName];
                skin.SvgPalettes[Skin.DefaultSkinPaletteName].SetCustomPalette(pallete);
                LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(true);

            WindowsFormsSettings.ForceDirectXPaint();

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            CheckShowApiKeysForm();

            //Settings
            Ticker.UseHtmlString = false;

            Application.Run(new MainForm());
        }
Exemplo n.º 6
0
 protected override void LookAndFeelStyleChanged()
 {
     base.LookAndFeelStyleChanged();
     Color windowColor     = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default).Colors.GetColor("Window");
     Color windowTextColor = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default).Colors.GetColor("WindowText");
     //lcTitle.Appearance.BackColor = windowColor;
     //lcTitle.Appearance.ForeColor = windowTextColor;
 }
Exemplo n.º 7
0
        protected override void LookAndFeelStyleChanged()
        {
            base.LookAndFeelStyleChanged();
            Color controlColor = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default).Colors.GetColor("Control");

            treeList1.Appearance.Empty.BackColor = controlColor;
            treeList1.Appearance.Row.BackColor   = controlColor;
        }
Exemplo n.º 8
0
        public static void InitializeDisabledColors(this LayoutControl layoutControl, UserLookAndFeel lookAndFeel)
        {
            var currentSkin = CommonSkins.GetSkin(lookAndFeel);
            var clrText     = currentSkin.Colors[CommonColors.WindowText];

            layoutControl.Appearance.ControlDisabled.ForeColor            = clrText;
            layoutControl.Appearance.DisabledLayoutItem.ForeColor         = clrText;
            layoutControl.Appearance.DisabledLayoutGroupCaption.ForeColor = clrText;
        }
Exemplo n.º 9
0
        public static void InitializeAsHeader(this LayoutControlItem layoutControlItem, UserLookAndFeel lookAndFeel, string text)
        {
            var   currentSkin = CommonSkins.GetSkin(lookAndFeel);
            Color color       = currentSkin.TranslateColor(SystemColors.ControlText);

            layoutControlItem.AppearanceItemCaption.ForeColor = color;
            layoutControlItem.TextVisible = !string.IsNullOrEmpty(text);
            layoutControlItem.Text        = text.FormatForLabel();
        }
Exemplo n.º 10
0
        private void log_Paint(object sender, PaintEventArgs e)
        {
            Skin currentSkin = CommonSkins.GetSkin(UserLookAndFeel.Default);
            // Color color = currentSkin.Colors.GetColor("Highlight");
            Color color = currentSkin.Colors.GetColor(DevExpress.Skins.CommonColors.DisabledControl);

            labelControl1.BackColor = color;
            labelControl2.BackColor = color;
            checkEdit1.BackColor    = color;
        }
Exemplo n.º 11
0
        public static void SavePalette(XafApplication application)
        {
            var model      = (IModelApplicationOptionsSkinSvg)application.Model.Options;
            var commonSkin = CommonSkins.GetSkin(UserLookAndFeel.Default);

            DevExpress.Utils.Svg.SvgPalette customPallete = commonSkin.SvgPalettes[Skin.DefaultSkinPaletteName].CustomPalette;
            var name = commonSkin.CustomSvgPalettes.FirstOrDefault(x => x.Value == customPallete).Key?.Name;

            model.Palette = name;
        }
Exemplo n.º 12
0
        public static Color GetSkinControlTextColor()
        {
            if (_skinControlTextColor == Color.Empty)
            {
                var skin = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
                _skinControlTextColor = skin.Colors[CommonColors.ControlText];
            }

            return(_skinControlTextColor);
        }
Exemplo n.º 13
0
        private Color GetCommonColorByName(string colorName, Color defaultColor)
        {
            Skin skin = CommonSkins.GetSkin(lookAndFeel);

            if (skin == null)
            {
                return(defaultColor);
            }
            return(skin.Colors[colorName]);
        }
        void DrawInfoText(ControlGraphicsInfoArgs info)
        {
            IPhoneCheckEditViewInfo view = (info.ViewInfo as IPhoneCheckEditViewInfo);
            Size  infoTextSize           = view.PaintAppearance.CalcTextSizeInt(info.Cache, view.InfoText, int.MaxValue);
            Point infoTextLocation       = view.InfoTextLocation;

            infoTextLocation.Offset(-infoTextSize.Width / 2, -infoTextSize.Height / 2);
            SkinElement e = CommonSkins.GetSkin(view.LookAndFeel)[CommonSkins.SkinButton];

            view.PaintAppearance.DrawString(info.Cache, view.InfoText, new Rectangle(infoTextLocation, infoTextSize), new SolidBrush(e.Color.GetForeColor()));
        }
        void DrawButton(ControlGraphicsInfoArgs info)
        {
            IPhoneCheckEditViewInfo view = (info.ViewInfo as IPhoneCheckEditViewInfo);
            SkinElement             e    = CommonSkins.GetSkin(view.LookAndFeel)[CommonSkins.SkinButton];
            SkinElementInfo         ei   = new SkinElementInfo(e, view.ButtonRect)
            {
                ImageIndex = view.ButtonImageIndex
            };

            ObjectPainter.DrawObject(info.Cache, SkinElementPainter.Default, ei);
        }
Exemplo n.º 16
0
        protected override void CalcContentRect(Rectangle bounds)
        {
            base.CalcContentRect(bounds);

            SelectionBackgroundElement = CommonSkins.GetSkin(LookAndFeel)[CommonSkins.SkinLayoutItemBackground];

            if (OwnerEdit?.EditValue == null || OwnerEdit.EditValue == DBNull.Value || Item.SelectionIcon == null)
            {
                Image            = null;
                ImageBounds      = new Rectangle(ContentRect.Location, Size.Empty);
                DrawSelectedItem = false;
            }
            else
            {
                Image = Item.SelectionIcon;
                //TODO: Scale image to fit editor?
                const int ImageHeight = 16;
                ImageBounds = new Rectangle(
                    ContentRect.X,
                    ClientRect.Y + (ClientRect.Height - ImageHeight) / 2 - 1,
                    Image.Width * (Image.Height / ImageHeight),
                    ImageHeight
                    );
                fMaskBoxRect.X     += ImageBounds.Width + 2;
                fMaskBoxRect.Width -= ImageBounds.Width + 2;
            }

            //If an item is selected and the user is not in the middle
            //of selecting another one, draw the selected item instead
            //of the MaskBox.  Instead of hiding the maskbox, I shrink
            //to not occupy any space, while leaving it focused.  This
            //allows the user to start typing to re-show the popup.
            if (OwnerEdit?.EditValue != null && OwnerEdit.EditValue != DBNull.Value && !OwnerEdit.IsPopupOpen)
            {
                DrawSelectedItem = true;
                SelectionBounds  = Rectangle.Inflate(base.MaskBoxRect, 0, 1);
                fMaskBoxRect     = Rectangle.Empty;

                if (Item.ResultDisplayColumn == null)
                {
                    ResultCaption = OwnerEdit.EditValue.ToString();
                }
                else
                {
                    ResultCaption = Item.ResultDisplayColumn.GetValue(OwnerEdit.EditValue);
                }
                AdditionalCaptions = Item.AdditionalResultColumns.Select(c => c.GetValue(OwnerEdit.EditValue)).ReadOnlyCopy();
            }
            else
            {
                DrawSelectedItem = false;
            }
        }
        public ProductItemControl(ProductInfo itemInfo,
                                  IntegratedSolutionState.ProductItemState itemState,
                                  IntegratedSolutionSubTabControl container) : base(container)
        {
            InitializeComponent();

            ItemState = itemState;
            ItemInfo  = itemInfo;

            Text            = ItemInfo.Title;
            ShowCloseButton = DefaultBoolean.True;

            UpdateTabPageHeaderState(ItemState.EnableOutput ?? true);

            if (Container.TabInfo.CommonEditorConfiguration.FontSize.HasValue)
            {
                var fontSizeDelte = Container.TabInfo.CommonEditorConfiguration.FontSize.Value -
                                    TextEditorConfiguration.DefaultFontSize;
                layoutControl.Appearance.Control.FontSizeDelta               = fontSizeDelte;
                layoutControl.Appearance.ControlFocused.FontSizeDelta        = fontSizeDelte;
                layoutControl.Appearance.ControlDropDown.FontSizeDelta       = fontSizeDelte;
                layoutControl.Appearance.ControlDropDownHeader.FontSizeDelta = fontSizeDelte;
                layoutControl.Appearance.ControlDisabled.FontSizeDelta       = fontSizeDelte;
                layoutControl.Appearance.ControlReadOnly.FontSizeDelta       = fontSizeDelte;
            }
            if (!Container.TabInfo.CommonEditorConfiguration.BackColor.IsEmpty)
            {
                layoutControl.Appearance.Control.BackColor         = Container.TabInfo.CommonEditorConfiguration.BackColor;
                layoutControl.Appearance.ControlFocused.BackColor  = Container.TabInfo.CommonEditorConfiguration.BackColor;
                layoutControl.Appearance.ControlDisabled.BackColor = CommonSkins.GetSkin(UserLookAndFeel.Default).Colors.GetColor(CommonColors.DisabledControl);;
            }
            if (!Container.TabInfo.CommonEditorConfiguration.ForeColor.IsEmpty)
            {
                layoutControl.Appearance.Control.ForeColor         = Container.TabInfo.CommonEditorConfiguration.ForeColor;
                layoutControl.Appearance.ControlFocused.ForeColor  = Container.TabInfo.CommonEditorConfiguration.ForeColor;
                layoutControl.Appearance.ControlDisabled.ForeColor = CommonSkins.GetSkin(UserLookAndFeel.Default).Colors.GetColor(CommonColors.DisabledText);
            }
            if (!Container.TabInfo.CommonEditorConfiguration.DropdownForeColor.IsEmpty)
            {
                layoutControl.Appearance.ControlDropDown.ForeColor       = Container.TabInfo.CommonEditorConfiguration.DropdownForeColor;
                layoutControl.Appearance.ControlDropDownHeader.ForeColor =
                    Container.TabInfo.CommonEditorConfiguration.DropdownForeColor;
            }

            var scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX);

            layoutControlItemToggle1.MaxSize = RectangleHelper.ScaleSize(layoutControlItemToggle1.MaxSize, scaleFactor);
            layoutControlItemToggle1.MinSize = RectangleHelper.ScaleSize(layoutControlItemToggle1.MinSize, scaleFactor);
            layoutControlItemToggle2.MaxSize = RectangleHelper.ScaleSize(layoutControlItemToggle2.MaxSize, scaleFactor);
            layoutControlItemToggle2.MinSize = RectangleHelper.ScaleSize(layoutControlItemToggle2.MinSize, scaleFactor);
            layoutControlItemToggle3.MaxSize = RectangleHelper.ScaleSize(layoutControlItemToggle3.MaxSize, scaleFactor);
            layoutControlItemToggle3.MinSize = RectangleHelper.ScaleSize(layoutControlItemToggle3.MinSize, scaleFactor);
        }
Exemplo n.º 18
0
        protected override void LookAndFeelStyleChanged()
        {
            base.LookAndFeelStyleChanged();
            Color windowColor     = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default).Colors.GetColor("Window");
            Color windowTextColor = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default).Colors.GetColor("WindowText");

            lgMessageInfo.AppearanceGroup.ForeColor = windowTextColor;
            lgMessageInfo.AppearanceGroup.BackColor = windowColor;
            //lcTitle.Appearance.BackColor = windowColor;
            lbDate.ForeColor = lbFrom.ForeColor = lbSubject.ForeColor = windowTextColor;
            //lcTitle.Appearance.ForeColor = windowTextColor;
        }
Exemplo n.º 19
0
        protected override void LookAndFeelStyleChanged()
        {
            base.LookAndFeelStyleChanged();

            Color controlColor =
                CommonSkins.GetSkin(UserLookAndFeel.Default)
                .Colors.GetColor("Control");

            tlServices.Appearance.Empty.BackColor = controlColor;
            tlServices.Appearance.Row.BackColor   = controlColor;
            SetFocusedColor(CommonSkins.GetSkin(UserLookAndFeel.Default));
        }
Exemplo n.º 20
0
        internal static void PaintSizeGrip(Rectangle rectangle, Graphics graphics)
        {
            var skin          = CommonSkins.GetSkin(UserLookAndFeel.Default.ActiveLookAndFeel);
            var skinElement   = skin[CommonSkins.SkinSizeGrip];
            var sizeGripImage = skinElement.Image.Image;

            var point = new Point();

            point.X = rectangle.Width - sizeGripImage.Width;
            point.Y = rectangle.Height - sizeGripImage.Height;

            graphics.DrawImageUnscaled(sizeGripImage, point);
        }
Exemplo n.º 21
0
        public static Color GetSkinForeColor( )
        {
            Skin currentSkin = CommonSkins.GetSkin(UserLookAndFeel.Default);

            if (currentSkin[CommonSkins.SkinForm].Color.ForeColor != SystemColors.ActiveCaptionText)
            {
                return(currentSkin[CommonSkins.SkinForm].Color.ForeColor);
            }
            else
            {
                return(currentSkin.TranslateColor(SystemColors.ActiveCaptionText));
            }
        }
Exemplo n.º 22
0
        public static Color GetSkinBackColor( )
        {
            Skin currentSkin = CommonSkins.GetSkin(UserLookAndFeel.Default);

            if (currentSkin[CommonSkins.SkinForm].Color.BackColor != SystemColors.Control)
            {
                return(currentSkin[CommonSkins.SkinForm].Color.BackColor);
            }
            else
            {
                return(currentSkin.TranslateColor(SystemColors.Control));
            }
        }
Exemplo n.º 23
0
        public static SkinController GetCurrentSkin()
        {
            // http://www.devexpress.com/Support/Center/KB/p/A2753.aspx

            var skin = CommonSkins.GetSkin(UserLookAndFeel.Default);

            if (_currentSkin == null || _currentSkin.Skin.Name != skin.Name)
            {
                _currentSkin = new SkinController(skin);
            }

            return(_currentSkin);
        }
Exemplo n.º 24
0
 protected override void FillBackground(GraphicsCache cache, Rectangle r)
 {
     if (LookAndFeel.ActiveLookAndFeel.Style == DevExpress.LookAndFeel.LookAndFeelStyle.Skin)
     {
         SkinElement     element = CommonSkins.GetSkin(LookAndFeel)[CommonSkins.SkinForm];
         SkinElementInfo info    = new SkinElementInfo(element, r);
         ObjectPainter.DrawObject(cache, SkinElementPainter.Default, info);
     }
     else
     {
         cache.Graphics.FillRectangle(SystemBrushes.Control, r);
     }
 }
Exemplo n.º 25
0
        // Perform various tasks depending on the target View.



        private void WinAlternatingRowsController_ViewControlsCreated(object sender, EventArgs e)
        {
            GridListEditor listEditor = ((ListView)View).Editor as GridListEditor;

            if (listEditor != null)
            {
                GridView gridView = listEditor.GridView;
                gridView.OptionsView.EnableAppearanceOddRow = true;
                Skin  currentSkin = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
                Color c           = currentSkin.TranslateColor(SystemColors.Control);
                gridView.Appearance.OddRow.BackColor = c;
            }
        }
        private object GetValue(DevExpress.XtraGrid.Views.Base.CustomColumnDataEventArgs e)
        {
            if (unboundValues.ContainsKey(e.ListSourceRowIndex))
            {
                return(unboundValues[e.ListSourceRowIndex]);
            }
            Skin        commonSkin = CommonSkins.GetSkin(UserLookAndFeel.Default.ActiveLookAndFeel);
            SkinElement loadingBig = commonSkin["LoadingBig"];

            unboundValues.Add(e.ListSourceRowIndex, loadingBig.Image.Image);
            GetDataAsync(e.ListSourceRowIndex);
            return(unboundValues[e.ListSourceRowIndex]);
        }
Exemplo n.º 27
0
        private void LoadSkin()
        {
            WindowsFormsSettings.DefaultLookAndFeel.SkinName = Properties.Settings.Default.SkinName;
            var paletteName = Properties.Settings.Default.SkinPalette;

            if (!string.IsNullOrWhiteSpace(paletteName))
            {
                var skin = CommonSkins.GetSkin(UserLookAndFeel.Default);
                DevExpress.Utils.Svg.SvgPalette palette = skin.CustomSvgPalettes[paletteName];
                skin.SvgPalettes[Skin.DefaultSkinPaletteName].SetCustomPalette(palette);
                LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
            }
        }
        public void SetSplitterPosition()
        {
            Skin        skin    = CommonSkins.GetSkin(_Container.Grid.LookAndFeel);
            SkinElement element = skin[CommonSkins.SkinSplitterHorz];

            int newSplitterPosition = _Container.ClientSize.Height - secondVI.ViewRects.RowsTotalHeight - buffer - element.Size.MinSize.Height;

            if (newSplitterPosition <= 1)
            {
                return;
            }

            _Container.SplitterPosition = newSplitterPosition;
        }
Exemplo n.º 29
0
        private void SetGridAppearance()
        {
            GridListEditor listEditor = ((ListView)View).Editor as GridListEditor;

            if (listEditor != null)
            {
                GridView gridView = listEditor.GridView;
                gridView.OptionsView.EnableAppearanceOddRow = true;
                Skin  currentSkin = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
                Color c           = currentSkin.TranslateColor(SystemColors.Control);
                gridView.Appearance.OddRow.BackColor      = c;
                gridView.Appearance.SelectedRow.BackColor = c;
            }
        }
Exemplo n.º 30
0
        private void SetupColors()
        {
            backColor = CommonSkins.GetSkin(LookAndFeel).TranslateColor(SystemColors.Control);
            ICollection collection = CommonSkins.GetSkin(LookAndFeel).GetElements();

            foreach (object o in collection)
            {
                if (o.ToString() == "TextBorder")
                {
                    SkinElement element = (o as SkinElement);
                    foreColor = element.Border.All;
                    break;
                }
            }
        }