protected override void RegisterViewPaintStyles()
 {
     PaintStyles.Add(new FakeViewPaintStyle(delegate
     {
         return(new CustomViewPaintStyle());
     }, "Flat"));
 }
 public override ViewPaintStyle PaintStyleByLookAndFeel(DevExpress.LookAndFeel.UserLookAndFeel lookAndFeel, string name)
 {
     if (ps == null)
     {
         ps = new CustomGridSkinPaintStyle();
         PaintStyles.Add(ps);
     }
     return(ps);
 }
        private void ReplaceSkinPaintStyle()
        {
            int defaultSkinPaintStyleIndex = GetDefaultSkinPaintStyleIndex();

            PaintStyles.RemoveAt(defaultSkinPaintStyleIndex);
            CustomSkinBarManagerPaintStyle ps = new CustomSkinBarManagerPaintStyle(PaintStyles);

            PaintStyles.Add(ps);
        }
Ejemplo n.º 4
0
        protected override void InitializePaintStyles()
        {
            ISupportLookAndFeel lookAndFeelOwner = owner.GetISupportLookAndFeel();

            if (lookAndFeelOwner != null)
            {
                PaintStyles.Add(new MyLayoutViewSkinPaintStyle(lookAndFeelOwner, View));
                PaintStyles.Add(new LayoutWindowsXPPaintStyle(lookAndFeelOwner));
                PaintStyles.Add(new LayoutViewOffice2003PaintStyle(lookAndFeelOwner, View));
                PaintStyles.Add(new LayoutViewStyle3DPaintStyle(lookAndFeelOwner, View));
                PaintStyles.Add(new LayoutViewUltraFlatPaintStyle(lookAndFeelOwner, View));
                PaintStyles.Add(new LayoutViewFlatPaintStyle(lookAndFeelOwner, View));
            }
            lookAndFeelOwner = null;
        }
Ejemplo n.º 5
0
        protected override void InitializePaintStyles()
        {
            var lookAndFeelOwner = owner.GetISupportLookAndFeel();

            if (lookAndFeelOwner != null)
            {
                PaintStyles.Add(new LayoutOffice2003PaintStyle(lookAndFeelOwner));
                PaintStyles.Add(new LayoutWindowsXPPaintStyle(lookAndFeelOwner));
                //
                // TODO: Add your owner PaintStyle instead of PaintStyles.Add(new LayoutSkinPaintStyle(lookAndFeelOwner));
                //
                PaintStyles.Add(new LayoutSkinPaintStyleEx(lookAndFeelOwner));

                PaintStyles.Add(new Style3DPaintStyle(lookAndFeelOwner));
                PaintStyles.Add(new UltraFlatPaintStyle(lookAndFeelOwner));
                PaintStyles.Add(new FlatPaintStyle(lookAndFeelOwner));
            }
            lookAndFeelOwner = null;
        }
Ejemplo n.º 6
0
 protected override void RegisterViewPaintStyles()
 {
     base.RegisterViewPaintStyles();
     PaintStyles.Remove(GetSkinStyle());
     PaintStyles.Add(new CGridSkinPaintStyle());
 }
Ejemplo n.º 7
0
 protected override void RegisterPaintStyles()
 {
     base.RegisterPaintStyles();
     PaintStyles.Add(new MySkinBarManagerPaintStyle(PaintStyles));
 }