Points are displayed now

This commit is contained in:
ti_mo
2025-10-20 20:07:21 +02:00
parent 0d108223f9
commit eece186bf3
+20 -15
View File
@@ -83,45 +83,50 @@
<TranslateTransform X="{Binding PanX}" Y="{Binding PanY}"/> <TranslateTransform X="{Binding PanX}" Y="{Binding PanY}"/>
</TransformGroup> </TransformGroup>
</Canvas.RenderTransform> </Canvas.RenderTransform>
<ItemsControl ItemsSource="{Binding Edges}"> <ItemsControl ItemsSource="{Binding Edges}"
Width="{Binding Bounds.Width, ElementName=Scene}"
Height="{Binding Bounds.Height, ElementName=Scene}"
IsHitTestVisible="False">
<ItemsControl.ItemsPanel> <ItemsControl.ItemsPanel>
<ItemsPanelTemplate><Canvas/></ItemsPanelTemplate> <ItemsPanelTemplate><Canvas/></ItemsPanelTemplate>
</ItemsControl.ItemsPanel> </ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>
<DataTemplate x:DataType="models:Geometries+GeomEdge"> <DataTemplate x:DataType="models:Geometries+GeomEdge">
<Line StartPoint="{Binding Start}" <Line StartPoint="{Binding Start}"
EndPoint="{Binding End}" EndPoint="{Binding End}"
Stroke="LightGray" Stroke="LightGray" StrokeThickness="1"/>
StrokeThickness="1"/>
</DataTemplate> </DataTemplate>
</ItemsControl.ItemTemplate> </ItemsControl.ItemTemplate>
</ItemsControl> </ItemsControl>
<ItemsControl ItemsSource="{Binding Circles}">
<ItemsControl ItemsSource="{Binding Circles}"
Width="{Binding Bounds.Width, ElementName=Scene}"
Height="{Binding Bounds.Height, ElementName=Scene}"
IsHitTestVisible="False">
<ItemsControl.ItemsPanel> <ItemsControl.ItemsPanel>
<ItemsPanelTemplate><Canvas/></ItemsPanelTemplate> <ItemsPanelTemplate><Canvas/></ItemsPanelTemplate>
</ItemsControl.ItemsPanel> </ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>
<DataTemplate x:DataType="models:Geometries+GeomCircle"> <DataTemplate x:DataType="models:Geometries+GeomCircle">
<Ellipse Stroke="Lime" StrokeThickness="1.5" <Ellipse Stroke="Lime" StrokeThickness="1.5"
Width="{Binding Diameter}" Width="{Binding Diameter}" Height="{Binding Diameter}"
Height="{Binding Diameter}" Canvas.Left="{Binding Left}" Canvas.Top="{Binding Top}"/>
Canvas.Left="{Binding Left}"
Canvas.Top="{Binding Top}"/>
</DataTemplate> </DataTemplate>
</ItemsControl.ItemTemplate> </ItemsControl.ItemTemplate>
</ItemsControl> </ItemsControl>
<ItemsControl ItemsSource="{Binding Points}">
<ItemsControl ItemsSource="{Binding Points}"
Width="{Binding Bounds.Width, ElementName=Scene}"
Height="{Binding Bounds.Height, ElementName=Scene}"
IsHitTestVisible="False">
<ItemsControl.ItemsPanel> <ItemsControl.ItemsPanel>
<ItemsPanelTemplate><Canvas/></ItemsPanelTemplate> <ItemsPanelTemplate><Canvas/></ItemsPanelTemplate>
</ItemsControl.ItemsPanel> </ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>
<DataTemplate x:DataType="models:Geometries+GeomPoint"> <DataTemplate x:DataType="models:Geometries+GeomPoint">
<Ellipse Fill="White" Stroke="Black" StrokeThickness="1" <Ellipse Fill="White" Stroke="Black" StrokeThickness="1"
Width="{Binding Size}" Width="{Binding Size}" Height="{Binding Size}"
Height="{Binding Size}" Canvas.Left="{Binding Left}" Canvas.Top="{Binding Top}"/>
Canvas.Left="{Binding Left}"
Canvas.Top="{Binding Top}"
/>
</DataTemplate> </DataTemplate>
</ItemsControl.ItemTemplate> </ItemsControl.ItemTemplate>
</ItemsControl> </ItemsControl>