/// <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); }
/// <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(); }
/// <summary> /// Initialises a new instance of the <see cref="WelcomePage"/> class. /// </summary> public WelcomePage(Canvas.Canvas view) : base(view, false) { InitializeComponent(); }
/// <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(); }
/// <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(); }
/// <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(); }