Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Spec] Popup add margin property #1398

@Cfun1

Description

@Cfun1

[The feature]

Started in this question/discussion #1188, it is intended to give the dev the ability to set margin for popup and thus giving more flexibility over popup position adjustment (in addition to VerticalOptions and VerticalOptions properties).

API

[ BasePopup.shared.cs]

Properties

API Type Description
Margin Thickness Gets or sets the margins of the popup.

Scenarios

Let say you have a popup and want to position it in the bottom center with a slight vertical margin (space between bottom edge of the screen and the bottom edge of the popup), you will put:

<xct:Popup ...
             VerticalOptions="FillAndExpand"
             HorizontalOptions="FillAndExpand"
             Margin="0,0,0,40"
...

Platform Compatibility

  • Target Frameworks:
    • iOS:
    • Android:
    • UWP:

Backward Compatibility

Difficulty : [low/medium/high]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions