Request: FlowDirection (StackPanel, WrapPanel)
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?
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: Request: FlowDirection (StackPanel, WrapPanel)
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.
The issue is already reported: https://www.noesisengine.com/bugs/view.php?id=1280.
We will work on this for the next version.
Re: Request: FlowDirection (StackPanel, WrapPanel)
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 :
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.
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 :
Code: Select all
<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>
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: Request: FlowDirection (StackPanel, WrapPanel)
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?
Would it be possible to just use 2 templates (left-to-right, right-to-left) and select the corresponding one?
Re: Request: FlowDirection (StackPanel, WrapPanel)
*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
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
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: Request: FlowDirection (StackPanel, WrapPanel)
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.
This feature requests a lot of changes to layout code and panels, but we will try to have it ready for that version.
Re: Request: FlowDirection (StackPanel, WrapPanel)
thank you very much for your effort!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 54 guests