<Canvas /> <Canvas .../> allows content to be positioned according to absolute x- and y-coordinates. Elements are drawn in a unique location unless they occupy the same coordinates, in which case they're drawn in the order in which they appear in markup. The default Height and Width of a Canvas is 0, unless it has a parent that automatically sizes child elements. Canvas has attached attributes, meaning they are used by child elements and defined as attributes of such. The following is an example of declaring the attached attributes of Canvas within a child element: <Canvas> <TextBox Canvas.Top="20" Canvas.Left="20" Canvas.Right="20" Canvas.Bottom="20">My text </TextBox> </Canvas> Attached Attributes
|