GeorgeR
Topic Author
Posts: 39
Joined: 15 Mar 2018, 01:06

Request: FlowDirection (StackPanel, WrapPanel)

05 Jan 2019, 17:09

I'm back to working on the UI for my game and the one missing feature I can't find an alternative for is FlowDirection support for both StackPanel and WrapPanel. Is this on the cards?
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Request: FlowDirection (StackPanel, WrapPanel)

08 Jan 2019, 01:58

Unfortunately this property is not yet implemented and is not going to be ready for 2.2 version.
The issue is already reported: https://www.noesisengine.com/bugs/view.php?id=1280.
We will work on this for the next version.
 
jinfox
Posts: 13
Joined: 06 Apr 2019, 00:11

Re: Request: FlowDirection (StackPanel, WrapPanel)

05 Mar 2020, 12:47

Hello,

I am sorry to dig this post back up but has this been implemented? It does not seem to be working on Noesis (whereas Blend seem to understand it correctly)

Here is a sample of code that I was trying to make work :
<DockPanel FlowDirection="LeftToRight">
        <Grid Name="PortraitZone" Background="Blue" Width="400" HorizontalAlignment="Left" />

        <Grid Name="SpeechBubble" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="56,0,0,0" >
            <Path Data="M0,256 L256,0 256,226 z" Fill="#CCFFFFFF" Height="56" Stretch="Fill" Width="56.1" HorizontalAlignment="Left" Margin="-56,0,0,0" />
            <Border Background="#CAFFFFFF" Padding="50" CornerRadius="30" MinWidth="300" >
                <TextBlock FontSize="36" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,20,50,0" Text="TEXT" />
            </Border>
        </Grid>

    </DockPanel>
In this example, in blend, By just switching "LeftToRight" to "RightToLeft", the speech bubble is automatically scale negatively in Y (very convenient) and the layout is inverted. Doing the same without FlowDirection would require a lot of trigger or different templates to achieve the same result.
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Request: FlowDirection (StackPanel, WrapPanel)

12 Mar 2020, 20:47

Sorry to say it is not implemented yet.

Would it be possible to just use 2 templates (left-to-right, right-to-left) and select the corresponding one?
 
Noa3
Posts: 10
Joined: 03 Sep 2020, 16:13

Re: Request: FlowDirection (StackPanel, WrapPanel)

15 Oct 2020, 12:17

*push*



Same for me, 3.0.6 Still not implemented.
i want to push this a bit.

a workaorund for me was to use a Dockpanel with LastChildFill="False" and then the elements with the tag DockPanel.Dock="Right". for the people who are watching for an alternative
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Request: FlowDirection (StackPanel, WrapPanel)

19 Oct 2020, 17:35

I have added FlowDirection issue #615 to 3.1 roadmap.

This feature requests a lot of changes to layout code and panels, but we will try to have it ready for that version.
 
Noa3
Posts: 10
Joined: 03 Sep 2020, 16:13

Re: Request: FlowDirection (StackPanel, WrapPanel)

21 Oct 2020, 16:43

thank you very much for your effort!

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 59 guests