View Issue Details

IDProjectCategoryView StatusLast Update
0004073NoesisGUIC# SDKpublic2025-05-19 13:12
ReporterJakePattersonCSpeed Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.7 
Target Version3.2.8Fixed in Version3.2.8 
Summary0004073: PathFigure does not update when its Segments collection is changed.
Description

Updating the PathSegmentCollection inside of PathFigure does not cause it to re-render. Slightly tweaking a property of the container of the PathFigure (like the Margin) will cause the rerender.

Reproduction Xaml and C#:

<Path x:Name="SegmentPath"
        Fill="Green">
    <Path.Data>
        <PathGeometry>
            <PathGeometry.Figures>
                <PathFigureCollection>
                    <PathFigure x:Name="SegmentFigure"/>
                </PathFigureCollection>
            </PathGeometry.Figures>
        </PathGeometry>
    </Path.Data>
</Path>
private int count = 0;

private void RedrawHandler()
{
    count += 1;
    Draw();
}

private void Draw()
{
    PathFigure segmentFigure = FindName("SegmentFigure") as PathFigure;

    segmentFigure.Segments.Clear();

    // Create new Segment instances as needed and add them to segmentFigure.Segments

    // Work around, changing the left margin of the container such that it will always be different and force a re-render
    float leftMargin = (count % 10) * 0.0001f;
    Margin = new(leftMargin, 0, 0, 0);
}
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-04-14 19:53 JakePattersonCSpeed New Issue
2025-04-14 20:45 jsantos Assigned To => sfernandez
2025-04-14 20:45 jsantos Status new => assigned
2025-04-14 20:45 jsantos Target Version => 3.2.8
2025-05-19 13:12 sfernandez Status assigned => resolved
2025-05-19 13:12 sfernandez Resolution open => fixed
2025-05-19 13:12 sfernandez Fixed in Version => 3.2.8