View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002497 | NoesisGUI | C++ SDK | public | 2023-01-30 08:56 | 2023-02-02 17:17 |
| Reporter | sckriel | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | feedback | Resolution | open | ||
| Product Version | 3.1.5 | ||||
| Summary | 0002497: Flow Direction layout incorrect | ||||
| Description | We’ve noticed something strange about how Noesis implements the Flow Direction property. This occurs if you are setting flow direction on a panel and on its children. If the Flow Direction properties are set during initialization, the behaviour is correct. However, if the Flow Direction is changed afterwards, the result is not correct. Instead of repeating the layout algorithm, the content of the panel is simply flipped horizontally. A XAML file illustrating the problem is attached. The combo box changes the flow direction of the third line. When this is changed to RightToLeft, I expect the third line to match the second line. Instead, it is simply flipped horizontally. | ||||
| Steps To Reproduce |
| ||||
| Attached Files | FlowDirectionBug.xaml (1,638 bytes)
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sys="clr-namespace:System"
Background="Transparent">
<StackPanel Margin="20" Width="200">
<Border Height="50">
<StackPanel FlowDirection="LeftToRight" Orientation="Horizontal">
<TextBlock Text="First" FlowDirection="LeftToRight"/>
<TextBlock Text="Second" FlowDirection="LeftToRight"/>
<TextBlock Text="Third" FlowDirection="LeftToRight"/>
</StackPanel>
</Border>
<Border Height="50">
<StackPanel FlowDirection="RightToLeft" Orientation="Horizontal">
<TextBlock Text="First" FlowDirection="LeftToRight"/>
<TextBlock Text="Second" FlowDirection="LeftToRight"/>
<TextBlock Text="Third" FlowDirection="LeftToRight"/>
</StackPanel>
</Border>
<Border Height="50" >
<StackPanel FlowDirection="{Binding SelectedItem, ElementName=FlowDirection1}" Orientation="Horizontal">
<TextBlock Text="First" FlowDirection="LeftToRight"/>
<TextBlock Text="Second" FlowDirection="LeftToRight"/>
<TextBlock Text="Third" FlowDirection="LeftToRight"/>
</StackPanel>
</Border>
<TextBlock Text="Flow Direction:"/>
<ComboBox
x:Name="FlowDirection1"
SelectedIndex="0">
<sys:string>LeftToRight</sys:string>
<sys:string>RightToLeft</sys:string>
</ComboBox>
</StackPanel>
</Grid> | ||||
| Platform | Windows | ||||
|
Hi Steven, FlowDirection is not supported in 3.1. We implemented full support for FlowDirection and RTL languages (like arabic) in 3.2 version. |
|
|
Ok, thanks for the explanation, should we close this issue then? |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-01-30 08:56 | sckriel | New Issue | |
| 2023-01-30 08:56 | sckriel | File Added: FlowDirectionBug.xaml | |
| 2023-01-30 08:56 | sckriel | File Added: after.png | |
| 2023-01-30 08:56 | sckriel | File Added: before.png | |
| 2023-01-30 10:48 | sfernandez | Assigned To | => sfernandez |
| 2023-01-30 10:48 | sfernandez | Status | new => feedback |
| 2023-01-30 10:48 | sfernandez | Note Added: 0008250 | |
| 2023-02-02 12:05 | sckriel | Status | feedback => assigned |
| 2023-02-02 17:17 | sfernandez | Status | assigned => feedback |
| 2023-02-02 17:17 | sfernandez | Note Added: 0008255 |