Exemplo n.º 1
0
        public ImageListView()
        {
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.Selectable, true);

            this.Padding = new System.Windows.Forms.Padding(10);

            _items.Owner = this;

            _layoutManager = new ImageListViewLayoutManager(this);

            //lazyRefreshTimer = new System.Timers.Timer();
            //lazyRefreshTimer.Interval = 10;
            //lazyRefreshTimer.Enabled = false;
            //lazyRefreshTimer.Elapsed += lazyRefreshTimer_Tick;
            //lazyRefreshCallback = new RefreshDelegateInternal(Refresh);
        }
 public ImageListViewRenderer(ImageListViewLayoutManager layoutManager)
 {
     _layoutManager = layoutManager;
 }
 public ImageListViewStandardRenderer(ImageListViewLayoutManager layoutManager)
     : base(layoutManager)
 {
     _itemHeaderStringFormat.Alignment   = StringAlignment.Center;
     _itemHeaderStringFormat.FormatFlags = StringFormatFlags.LineLimit | StringFormatFlags.NoWrap;
 }