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

Conversation

jsuarezruiz
Copy link
Collaborator

Description of Change

The DockLayout makes it easy to dock content in all four directions (top, bottom, left and right).
This makes it a great choice in many situations, where you want to divide the screen into specific areas,
especially because by default, the last element inside the DockLayout, unless this feature is specifically disabled,
will automatically fill the rest of the space (center).

xct-docklayout

API Changes

Added:

  • DockLayout
<layout:DockLayout
    LastChildFill="False">
    <Button layout:DockLayout.Dock="Top" Text="Top" HeightRequest="50"/>
    <Button layout:DockLayout.Dock="Bottom" Text="Bottom" HeightRequest="50"/>
    <Button layout:DockLayout.Dock="Left" Text="Left" WidthRequest="60"/>
    <Button layout:DockLayout.Dock="Left" Text="Left" WidthRequest="60"/>
    <Button layout:DockLayout.Dock="Right" Text="Right" WidthRequest="80"/>
    <Button layout:DockLayout.Dock="Right" Text="Right" WidthRequest="80"/>
</layout:DockLayout>

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

@jsuarezruiz jsuarezruiz added the a/views This issue/PR is related to views label Nov 19, 2020
@XamarinCommunityToolkitBot

A new build for this PR has been completed. As a result a NuGet has been created which allows you to verify this fix or try out the new feature! Download here

@XamarinCommunityToolkitBot

A new build for this PR has been completed. As a result a NuGet has been created which allows you to verify this fix or try out the new feature! Download here

@XamarinCommunityToolkitBot

A new build for this PR has been completed. As a result a NuGet has been created which allows you to verify this fix or try out the new feature! Download here

@XamarinCommunityToolkitBot

A new build for this PR has been completed. As a result a NuGet has been created which allows you to verify this fix or try out the new feature! Download here

@XamarinCommunityToolkitBot

A new build for this PR has been completed. As a result a NuGet has been created which allows you to verify this fix or try out the new feature! Download here

@XamarinCommunityToolkitBot

A new build for this PR has been completed. As a result a NuGet has been created which allows you to verify this fix or try out the new feature! Download here

@jsuarezruiz jsuarezruiz merged commit 4331655 into main Dec 1, 2020
@jsuarezruiz jsuarezruiz deleted the docklayout branch December 1, 2020 12:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/views This issue/PR is related to views
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants