Site navigation

Last Edit

Page last modified 18:30, 6 Dec 2015 by Sebastiii
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Related Changes > 1.1.0 to 1.2.0 > StackLayout shift buttons

StackLayout shift buttons


    • Required:  No
    • Type of Change:  Feature

    In a Group control using layout StackLayout, if a button is hidden due to its visibility condition, there will be a "hole" in its place. With a new parameter for StackLayout, the visible buttons will shift so as to not have these "holes".

    Description of Change

    A 3rd argument has been added to StackLayout with possible values of "true" or "false". If set to "true", then buttons in a group control with a StackLayout that are hidden will be "removed" and the surrounding buttons shifted so there are no gaps between buttons. If set to "false" or omitted then hidden buttons will leave an empty space.

    Default = false (preserves the existing behaviour in MP)

    • StackLayout(int spacing, Orientation orientation, bool CollapseHiddenButtons)

    Additional Information and References

    Mantis Issue 3241
    Related xml(s) all that use StackLayout
    Windows IDs  
    Related GUI control GUIGroup, Group, Layout
    Author Migue
    Date added Fri, 03 Dec 2010

    XML/Code Samples

        <description>button group</description>
        <animation effect="slide" time="450" start="-300,0" reversible="false">visible</animation>
        <animation effect="slide" time="450" end="-300,0" reversible="false">hidden</animation>
        <layout>StackLayout(0, Vertical, true)</layout>
        <description>Switch Layout</description>
        <description>Switch View</description>
        <description>Play DVD</description>


    This screenshot shows the behavior if value is "false" or omitted and player is playing(test button hidden):


    This screenshot shows behavior if value is "true":


    Running the latest version?

    V1.15.0 - released June 2016
    Releasenews | Download
    | Requirements

    MediaPortal RSS Feeds

    windows media centerNews & Blogs
    htpcP&S: New


    Contact | Press