XAML in a Nutshell (In a Nutshell (OReilly))

FloaterHierarchy: DependencyObject ContentElement FrameworkContentElement TextElement Block

<Floater HorizontalAlignment="Center|Right|Left|Stretch" Width="100" />

<Floater .../> displays images and other content parallel to the main content flow within a container. Floaters are always positioned parallel to the main flow of content. Unlike Figure, Floater may not span multiple columns. (See Figure 7-3.)

Figure 7-3. Floater with image and text positioned in a paragraph

Attributes

HorizontalAlignment (optional)

Indicates where the Floater should be aligned relative to its parent's layout slot.

Center

Align the element at the center of its parent's layout slot.

Left

Align the element to the left of its parent's layout slot.

Right

Align the element to the right of its parent's layout slot.

Stretch

Stretch the element to fit to the width of its parent's layout slot.

Width (optional)

A Double value indicating the width of the element.

Категории