示例#1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="CanvasItem"/> class with the
        /// specified Canvas and optional separator.
        /// </summary>
        protected CanvasItem(Canvas view, bool hasSeparator)
        {
            InitializeComponent();

            SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            SetStyle(ControlStyles.Selectable, false);

            _view = view;
            _height = -1;
            _hasSeparator = hasSeparator;

            _tooltip = new ToolTip();
            _lastMousePosition = new Point(0, 0);
        }
示例#2
0
 /// <summary>
 /// Initialises a new instance of the <see cref="ForumPage"/> class with
 /// the specified Canvas and optional separator.
 /// </summary>
 public ForumPage(Canvas.Canvas view, bool separator)
     : base(view, separator)
 {
     InitializeComponent();
 }
示例#3
0
 /// <summary>
 /// Initialises a new instance of the <see cref="WelcomePage"/> class.
 /// </summary>
 public WelcomePage(Canvas.Canvas view)
     : base(view, false)
 {
     InitializeComponent();
 }
示例#4
0
 /// <summary>
 /// Initialises a new instance of the <see cref="InboxItem"/> class with the
 /// specified Canvas and optional separator.
 /// </summary>
 public InboxItem(Canvas.Canvas view, bool separator)
     : base(view, separator)
 {
     InitializeComponent();
 }
示例#5
0
 /// <summary>
 /// Initialises a new instance of the <see cref="ProfileGroupItem"/> class with
 /// the specified Canvas and optional separator.
 /// </summary>
 public ProfileGroupItem(Canvas.Canvas view, bool separator)
     : base(view, separator)
 {
     InitializeComponent();
 }
示例#6
0
 /// <summary>
 /// Initialises a new instance of the <see cref="MessageItem"/> class
 /// with the specified Canvas.
 /// </summary>
 public MessageItem(Canvas.Canvas view)
     : base(view, false)
 {
     IsExpandable = true;
     InitializeComponent();
 }