Example #1
0
 public SliceCellStyling(SliceVisualizerTable table, SliceColumnStyling styling, IFontAndColorProvider fontAndColor, SliceVisualizerContext context)
 {
     _table                = table;
     _fontAndColor         = fontAndColor;
     _columnStyling        = styling;
     _appearance           = context.Options.VisualizerAppearance;
     _stylingOptions       = context.Options.VisualizerColumnStyling;
     _tableBackgroundBrush = new SolidBrush(_table.BackgroundColor);
 }
        public SliceVisualizerControl(IToolWindowIntegration integration)
        {
            _context    = integration.GetSliceVisualizerContext();
            DataContext = _context;
            InitializeComponent();

            var tableFontAndColor = new FontAndColorProvider();

            _table = new SliceVisualizerTable(_context, tableFontAndColor);
            TableHost.Setup(_table);
        }
        public void Setup(SliceVisualizerTable table)
        {
            Child = table;

            /*
             * using (var graphics = Graphics.FromHwnd(IntPtr.Zero))
             * {
             *  var scaleFactor = graphics.DpiY / 96;
             *  table.ScaleControls(scaleFactor);
             * }
             */
        }
 public SliceRowStyling(SliceVisualizerTable table)
 {
     _table = table;
 }
        public static void ApplyOnRowPostPaint(SliceVisualizerTable table)
        {
            var rowSyling = new SliceRowStyling(table);

            table.RowPostPaint += rowSyling.ReplaceDefaultRowHeaderBitmap;
        }
Example #6
0
        public static void ApplyCellStylingOnCellPainting(SliceVisualizerTable table, SliceColumnStyling styling, IFontAndColorProvider fontAndColor, SliceVisualizerContext context)
        {
            var cellStyling = new SliceCellStyling(table, styling, fontAndColor, context);

            table.CellPainting += cellStyling.HandleCellPaint;
        }
 public SliceColumnStyling(SliceVisualizerTable table, Options.VisualizerAppearance appearance)
 {
     _table      = table;
     _appearance = appearance;
 }