Skip to content

Crow.PrivateContainer

Jean-Philippe Bruyère edited this page Oct 26, 2021 · 4 revisions

Implement drawing and layouting for a single child, but does not expose child to allow reuse of container behaviour for widgets that have other xml hierarchy: example TemplatedControl may have 3 children (template,templateItem,content) but behave exactely as a container for layouting and drawing

namespace: Crow

Inheritance Hierarchy

Syntax

public class PrivateContainer : Widget

Constructors

prototype description
PrivateContainer (Interface iface, string style=null) __

Properties

name description

Methods

prototype description
void checkHoverWidget(MouseMoveEventArgs e) __
bool Contains(Widget goToFind) __
Widget FindByName(string nameToFind) __
T FindByType< T >() __
int measureRawSize(LayoutingType lt) return size of content + margins
void OnChildLayoutChanges(object sender, LayoutingEventArgs arg) __
void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e) __
void OnLayoutChanges(LayoutingType layoutType) trigger dependant sizing component update
bool UpdateLayout(LayoutingType layoutType) Update layout component only one at a time, this is where the computation of alignement and size take place. The redrawing will only be triggered if final slot size has changed

Events

name description
Clone this wiki locally