This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomViewInfo.cs
86 lines (74 loc) · 1.97 KB
/
CustomViewInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using System;
using System.Collections.Generic;
using System.Linq;
using DevExpress.XtraGrid.Views.Base.ViewInfo;
using DevExpress.XtraGrid.Views.Base;
namespace CustomGrid
{
public class CustomViewInfo : BaseViewInfo
{
public CustomViewInfo(CustomView view)
: base(view)
{
IsReady = true;
}
public override BaseView View
{
get
{
return base.View;
}
}
protected override void AddAnimatedItems()
{
throw new NotImplementedException();
}
public override System.Drawing.Rectangle Bounds
{
get
{
return View.ViewRect;
}
}
public override System.Drawing.Rectangle ClientBounds
{
get
{
throw new NotImplementedException();
}
}
protected override DevExpress.Utils.BaseAppearanceCollection CreatePaintAppearances()
{
return new DevExpress.Utils.BaseAppearanceCollection();
}
protected override BaseSelectionInfo CreateSelectionInfo()
{
return new CustomSelectionInfo(View as CustomView);
}
protected override DevExpress.XtraEditors.ViewInfo.BaseEditViewInfo HasItem(CellId id)
{
throw new NotImplementedException();
}
internal void UpdateTabControlInternal() {
UpdateTabControl();
}
protected override void UpdateTabControl() {
base.UpdateTabControl();
TabControl.Bounds = CalcBorderRect(Bounds);
}
}
internal class NullTreeListViewInfo : CustomViewInfo
{
public NullTreeListViewInfo(CustomView treeListView)
: base(treeListView)
{
}
public override bool IsNull
{
get
{
return true;
}
}
}
}