Page Browser

Represents a control that allows you to embed a page within another page.

Remarks

This control is commonly used to reference a single XAML page several places in a project.

It supports templating features similar to that of the DeviceBrowser. When the Device property is set, all references to @Device in the current Page's XAML will be replaced with the assigned value.

This control is only compatible with pages of type ContentPage.

Properties

PropertyTypeDescription
BackgroundColorThe background color of the control.
DeviceStringThe Device context for the current Page.
PageStringThe filename of the page to display in the browser control.
HeightFloatThe suggested height of the control in dp pixels.
HorizontalAlignmentEnumThe horizontal alignment characteristics that are applied to the control when it is composed in a parent layout panel, such as a Grid.
MarginThicknessThe outer margin that is applied to the control when it is composed in a parent layout panel, such as a Grid.
RotationIntegerThe rotation about the Z-axis in degrees.
VerticalAlignmentEnumThe vertical alignment characteristics that are applied to the control when it is composed in a parent layout panel, such as a Grid.
WidthFloatThe suggested width of the control in dp pixels.
IsEnabledBooleanA value that indicates whether the user can interact with the control.
IsHitTestVisibleBooleanA value that indicates whether the contained area of the control can return true values for hit testing.
IsVisibleBooleanA value that indicates whether the control should be visible.
OpacityFloatA value between 0 and 1.0 that declares the opacity factor, with 1.0 meaning full opacity and 0 meaning transparent.

Events

EventDescription
LoadedOccurs when the element is laid out, rendered, and ready for interaction.
UnloadedOccurs when the element is no longer rendered on the screen.