Xamarin.Forms.Frame Class
An element containing a single child, with some framing options.

See Also: Frame Members

Syntax

[Xamarin.Forms.ContentProperty("Content")]
public class Frame : ContentView

Remarks

Frame have a default Layout.Padding of 20.

The following example shows how to construct a new Frame with an Outline color.

C# Example

var frame = new Frame {
  Content = new Label { Text = "I'm Framous!" },
  OutlineColor = Color.Silver,
};
          

The Xamarin.Forms.Frame class has the following XAML properties:

PropertyValue
HasShadow

true or false, to indicate whether to show a shadow effect where the platform supports it.

OutlineColor

A color specification, with or without the prefix, "Color". For example, "Color.Red" and "Red" both specify the color red.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0