alternetsoft / AlternetUI

MIT License
26 stars 2 forks source link

Grid control properties for childs should not be stored in Dictionary, it slows down the painting and resize #22

Closed generalloki closed 1 year ago

generalloki commented 1 year ago

Instead of static Dictionary<Control, int> controlColumns = new Dictionary<Control, int>(); static Dictionary<Control, int> controlRows = new Dictionary<Control, int>(); static Dictionary<Control, int> controlColumnSpans = new Dictionary<Control, int>(); static Dictionary<Control, int> controlRowSpans = new Dictionary<Control, int>(); static Dictionary<Control, bool> controlIsSharedSizeScopes = new Dictionary<Control, bool>(); we need to have in each Control custom named attributes and use them instead of these 5 dictionaries