View Issue Details

IDProjectCategoryView StatusLast Update
0003246NoesisGUIStudiopublic2024-04-22 15:55
Reporterfllorens Assigned Tomaherne  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product VersionStudio_Alpha 
Target VersionStudio_AlphaFixed in VersionStudio_Alpha 
Summary0003246: MathConverter expander not expanding
Description

As seen here: https://youtu.be/gYt0Rsl72q8?feature=shared&t=70

Creating a binding in a StackPanel to the Canvas.Left and Canvas.Top properties is not working properly.
Sometimes there are two 'Canvas.Left' properties in the xaml, and in one case there was a 'StackPanel.Left'.

As a result the MathConverter becomes unexpandable.

Attaching 2 simplified files, before and after trying to create the binding.

Steps To Reproduce
  1. Open the attached MathConverterBefore.xaml
  2. select the stackpanel and create a binding for the 'left' property, to 'WidthSource' path 'ActualWidth'.
  3. Then look for converters and select 'MathConverter'.
  4. Try to expand the converter
Attached Files
MathConverterAfter.xaml (1,706 bytes)   
<Page
    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:noesis="clr-namespace:NoesisGUIExtensions"
    Background="#FF4D5052"
    mc:Ignorable="d">
    <Grid>
        <Grid
            Width="579"
            Height="274"
            Margin="485,0,0,0"
            HorizontalAlignment="Center"
            VerticalAlignment="Top">
            <Rectangle
                x:Name="WidthSource"
                Width="465"
                Height="274"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                Fill="#FFF4F4F5"
                Stroke="#FF000000" />
        </Grid>
        <Canvas
            Width="1417.261"
            Height="428"
            Margin="0,264.94,0,0"
            HorizontalAlignment="Right"
            VerticalAlignment="Center">
            <StackPanel Canvas.Left="{Binding Path=ActualWidth, ElementName=WidthSource}">
                <Canvas.Left>
                    <Binding Path="ActualWidth" ElementName="WidthSource">
                        <Binding.Converter>
                            <noesis:MathConverter/>
                        </Binding.Converter>
                    </Binding>
                </Canvas.Left>
                <Ellipse
                    Width="153"
                    Height="153"
                    Fill="#FF468AE3"
                    Stroke="#FF000000" />
            </StackPanel>
        </Canvas>
    </Grid>
</Page>
MathConverterAfter.xaml (1,706 bytes)   
MathConverterBefore.xaml (1,332 bytes)   
<Page
    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:noesis="clr-namespace:NoesisGUIExtensions"
    Background="#FF4D5052"
    mc:Ignorable="d">
    <Grid>
        <Grid
            Width="579"
            Height="274"
            Margin="485,0,0,0"
            HorizontalAlignment="Center"
            VerticalAlignment="Top">
            <Rectangle
                x:Name="WidthSource"
                Width="465"
                Height="274"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                Fill="#FFF4F4F5"
                Stroke="#FF000000" />
        </Grid>
        <Canvas
            Width="1417.261"
            Height="428"
            Margin="0,264.94,0,0"
            HorizontalAlignment="Right"
            VerticalAlignment="Center">
            <StackPanel>
                <Ellipse
                    Width="153"
                    Height="153"
                    Fill="#FF468AE3"
                    Stroke="#FF000000" />
            </StackPanel>
        </Canvas>
    </Grid>
</Page>
MathConverterBefore.xaml (1,332 bytes)   
PlatformAny

Activities

Issue History

Date Modified Username Field Change
2024-04-17 19:14 fllorens New Issue
2024-04-17 19:14 fllorens File Added: MathConverterAfter.xaml
2024-04-17 19:14 fllorens File Added: MathConverterBefore.xaml
2024-04-17 19:21 fllorens Description Updated
2024-04-18 15:17 jsantos Assigned To => maherne
2024-04-18 15:17 jsantos Status new => assigned
2024-04-18 15:17 jsantos Product Version => Studio_Alpha
2024-04-18 15:17 jsantos Target Version => Studio_Alpha
2024-04-22 15:55 maherne Status assigned => resolved
2024-04-22 15:55 maherne Resolution open => fixed
2024-04-22 15:55 maherne Fixed in Version => Studio_Alpha