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?

Tags:
 
User avatar
sfernandez
Site Admin
Posts: 1851
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: 9
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: 1851
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?

Who is online

Users browsing this forum: Bing [Bot], sfernandez and 5 guests