Displays a shape with fills and strokes

Shape is the baseclass for all shapes in fuse. A shape can have Fills and Strokes. By default a shape does not have a size, fills or strokes. You must add some for it to be visible.


<Rectangle Width="200" Height="100" CornerRadius="16">
        <GradientStop Offset="0" Color="#0ee" />
        <GradientStop Offset="1" Color="#e0e" />
    <Stroke Width="2">
        <SolidColor Color="#000" />

<Circle Width="200" Height="100" >
        <GradientStop Offset="0" Color="#cf0" />
        <GradientStop Offset="1" Color="#f40" />
    <Stroke Width="1">
        <SolidColor Color="#000" />

Available Shape classes:

Arc ux

Displays an arc.

Bubble uno

A bordered circle, generally used for profile images.

Card uno

Cards are generally light. Thus, they have an implicit LightTheme by default. You can disable this behavior by using its base class, ThemedCard instead.

CardMedia uno

A Rectangle that fills the top of a Card. Generally used to display an image that relates to a piece of text content.

ColorBadge uno

A horizontal rectangle, generally used to communicate category using color.

Curve ux

Draws a curve connecting several points, specified as CurvePoint.

Donut uno

A colored circle, generally used to communicate category.

ListViewHeader uno

A colored header bar with text, used to display the category of a group of items.

PlotTicks ux

Creates tick marks, usually for an axis. This is a Shape, allowing Stroke... properties to be used for drawing the ticks. The ticks that are drawn will line up with the labels of PlotAxis provided they are the same element size (either Width or Height depending on the axis).

ThemedCard uno

A Card that takes its background color from the currently active theme.


Use only one of the methods of specifying strokes. Either list the desired Stroke objects as children, or provide a single object to the Stroke property, or specify one or more of StrokeColor, StrokeWidth, and StrokeAlignment.

It is undefined what happens if the different ways of specifying a stroke are combined.


Fuse.Controls.Primitives 2.4.0
Show Uno properties and methods

Interface of Shape

Fill : Brush ux

The Fill property sets a single fill on the Shape

Inherited from LayoutControl

Inherited from Control

Inherited from Element

ActualPosition : float2 uno

The position of the element, the position of its top-left corner to the top-left corner in the parent.

Anchor : Size2 ux

A point within the element to treat as its "epicenter".

Aspect : float ux

The aspect ratio that an element must fulfill in layout.

Offset : Size2 ux

Offets the position of the element after all other layout has been applied.

Inherited from Visual

bringIntoView() js

Requests that this visual be brought into the visible are of the screen. Typically a containing ScrollView will scroll to ensure it is visible.

Children : IList of Node ux

The children of the visual. All nodes placed inside the visual in UX markup are assigned to this list. The order of Visuals this list determines the order of layout. The Z-order of the children is by default equal to this order, but can be manipulated separately using methods like BringToFront and SendToBack.

InvalidateVisual uno

Indicates the visual for this node has changed. This allows the root-level node to know that it must draw, and any caching that it must invalidate the cache for this node.

InvalidateVisualComposition uno

Indicates the composition of the visual has changed, but that the visual drawing itself is still valid (for example a position change).

IsEnabled : bool ux

Whether this node is currently interactable. Disabled visuals do not receive input focus. However, they can still be visible and block hit test for underlaying objects.

IsLocalVisible : bool uno

Returns whether this visual is visible without concern for whether an ancestor visual is hidden or collapsed.

IsVisible : bool uno

Returns whether this visual is currently visible. Will return false if any of the ancestor visuals are hidden or collapsed. This property can not be used to check whether a visual is hidden because it is occluded by another visual, or is outside the view but otherwise visible.

Parameter : string ux

The parameter data for this visual, encoded as JSON, provided by a router if this visual represents a navigation page.

SnapToPixels : bool ux

Whether to snap the result of layout of this visual to physical device pixels.

ZOffset : float ux

Specifies a Z-Offset, visuals with higher values are in front of other visuals.

Inherited from Node

ContextParent : Node uno

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.

FindNodeByName(Selector, Predicate<Node> (Node)) : Node uno

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.

IsRootingStarted : bool uno

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.

Name : Selector ux

Run-time name of the node. This property is automatically set using the ux:Name attribute.

OnRooted uno

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.

Inherited from PropertyObject

Inherited from object

Implemented Interfaces

IScriptObject uno

Interface for objects that can have a script engine representation