View Issue Details

IDProjectCategoryView StatusLast Update
0002308NoesisGUIC# SDKpublic2022-03-15 13:14
Reporterdarthmaule2 Assigned Tosfernandez  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product Version3.1.3 
Target Version3.1.4Fixed in Version3.1.4 
Summary0002308: Binding to a PolyLineSegment's Points property doesn't work
Description

Binding to a PolyLineSegment's Points property results in this error:

2022-03-11 16:57:21.0651|ERROR|Noesis|Can't add a 'Boxed<Point>' to a 'PointCollection'
2022-03-11 16:57:21.0651|ERROR|Noesis|Can't add a 'Boxed<Point>' to a 'PointCollection'

Steps To Reproduce

This XAML doesn't work:

<UserControl x:Class="Modules.Measurement.LineControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Modules.Measurement"
Visibility="{Binding Visibility}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="MeasurementResources.xaml"/>
</ResourceDictionary.MergedDictionaries>

        <DataTemplate DataType="{x:Type local:Line}">
            <Grid>
                <Path x:Name="line" Stroke="White" StrokeThickness="1" >
                    <Path.Data>
                        <PathGeometry>
                            <PathFigure StartPoint="{Binding Start.Position}">
                                <PathFigure.Segments>
                                    <PolyLineSegment Points="{Binding Points}" />
                                </PathFigure.Segments>
                            </PathFigure>
                        </PathGeometry>
                    </Path.Data>
                </Path>
            </Grid>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding Path=Dotted}" Value="True">
                    <Setter TargetName="line" Property="StrokeDashArray" Value="5,5"/>
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>
    </ResourceDictionary>
</UserControl.Resources>

<UserControl.Template>
    <ControlTemplate TargetType="{x:Type UserControl}">
        <ContentPresenter Content="{Binding}"/>
    </ControlTemplate>
</UserControl.Template>

</UserControl>

PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-03-14 11:59 darthmaule2 New Issue
2022-03-14 12:11 sfernandez Assigned To => sfernandez
2022-03-14 12:11 sfernandez Status new => assigned
2022-03-14 12:11 sfernandez Target Version => 3.1.4
2022-03-15 13:14 sfernandez Status assigned => resolved
2022-03-15 13:14 sfernandez Resolution open => fixed
2022-03-15 13:14 sfernandez Fixed in Version => 3.1.4