Deferred Constructor uno
Creates a new Deferred
Defers the creation of nodes to improve initialization time.
Deferred
says that the content is not required immediately and may be created somewhat later. This allows the app to startup faster, or to create new pages faster. Without Deferred
the nodes are initialized all in the same frame, which can lead to delays. With Deferred
the node creation is staggered over several frames. This allows the app to start rendering and displaying prior to being completely initialized.
A common use is with an Each:
<Each Items="{items}">
<Deferred>
<StackPanel Orientation="Horizontal">
<Text Value="{name}"/>
<Text Value="{address}"/>
<Text Value="{phone}"/>
</StackPanel>
</Deferred>
</Each>
Note that the delay is measured in frames: deferred content will still be added quickly. Nonetheless it may result in some popping of the new elements and a change in layout.
You only need to use this feature when you are having initializaiton time problems at startup or on new pages. Wrapping the content of Each in Deferred
is a simple change that can help when you are using lists of items. The individual pages of a top-level PageControl may also be suitable for Deferred
.
Do not use this on the pages of a Navigator or other control that accepts templates. Templates are already created on demand and wrapping them in Deferred
usually won't be helpful.
Creates a new Deferred
The list of bindings belonging to this node.
The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.
Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.
Whether rooting for this node is completed. Returns false if unrooting has started.
Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.
Run-time name of the node. This property is automatically set using the ux:Name attribute.
Returns the next sibling node of the given type.
If you override OnRooted
you must call base.OnRooted()
first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.
The parent Visual of this node. Will return null if the node is not rooted.
Returns the next sibling node of the given type.
A linked list holding data for extrinsic properties.
hide
hide
Interface for objects that can have a script engine representation
hide