}
}
+
/// <summary>
/// Destructor which adds LayoutController to the Dispose queue.
/// </summary>
{
if (rootNode.GetType() == typeof(View))
{
- Log.Info("NUI", "Creating LayoutGroup for " + rootNode.Name + "\n");
rootNode.Layout = new LayoutGroup();
AutomaticallyAssignLayouts(rootNode);
}
else
{
- Log.Info("NUI", "Creating LayoutItem for " + rootNode.Name + "\n");
rootNode.Layout = new LayoutItem();
}
}
rootSize = new Size2D(_window.Size.Width, _window.Size.Height);
}
- Log.Info("NUI", "Root parent size(" + rootSize.Width + "," + rootSize.Height + ")\n");
-
// Determine measure specification for root.
// The root layout policy could be an exact size, be match parent or wrap children.
// If wrap children then at most it can be the root parent size.
/// </summary>
private void Process(int id)
{
- Log.Info("NUI", "LayoutController Process id:" + id + "\n");
-
Layer defaultLayer = _window.GetDefaultLayer();
for (uint i = 0; i < defaultLayer.ChildCount; i++)
{
View view = defaultLayer.GetChildAt(i);
FindRootLayouts(view);
}
+
}
/// <summary>