/// <summary> /// Constructor for ScrolledContainer objects. /// </summary> /// <param name="type"></param> /// <param name="name"></param> public ScrolledContainer(string type, string name) : base(type, name) { _contentArea = Rectf.Zero; _autoSizePane = true; _clientChildContentArea = new CachedRectf(this, (e, b) => ((ScrolledContainer)e).GetClientChildContentAreaImpl(b)); AddScrolledContainerProperties(); SetCursorInputPropagationEnabled(true); }
/// <summary> /// Constructor for Window base class /// </summary> /// <param name="type"> /// String object holding Window type (usually provided by WindowFactory). /// </param> /// <param name="name"> /// String object holding unique name for the Window. /// </param> protected LayoutContainer(string type, string name) : base(type, name) { _needsLayouting = false; _clientChildContentArea = new CachedRectf(this, (e, v) => ((LayoutContainer)e).GetClientChildContentAreaImpl(v)); // layout should take the whole window by default I think SetSize(new USize(UDim.Relative(1), UDim.Relative(1))); ChildAdded += HandleChildAdded; ChildRemoved += HandleChildRemoved; }