public void FindElsWithLayoutClip() { foreach (var fe in FENode.Flatten(new FENode(this))) { var lc = LayoutInformation.GetLayoutClip(fe); var ls = LayoutInformation.GetLayoutSlot(fe); } }
public static IEnumerable<FrameworkElement> Flatten(FENode node) { yield return node._Element; foreach (var child in node.Children) { foreach (var granchild in Flatten(child)) { yield return granchild; } } }
public static IEnumerable <FrameworkElement> Flatten(FENode node) { yield return(node._Element); foreach (var child in node.Children) { foreach (var granchild in Flatten(child)) { yield return(granchild); } } }
void MainPage_LayoutUpdated(object sender, EventArgs e) { var node = new FENode(this); FindElsWithLayoutClip(); }