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}"/>
</TransformGroup>
</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>
<ItemsPanelTemplate><Canvas/></ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate x:DataType="models:Geometries+GeomEdge">
<Line StartPoint="{Binding Start}"
<Line StartPoint="{Binding Start}"
EndPoint="{Binding End}"
Stroke="LightGray"
StrokeThickness="1"/>
Stroke="LightGray" StrokeThickness="1"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</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>
<ItemsPanelTemplate><Canvas/></ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate x:DataType="models:Geometries+GeomCircle">
<Ellipse Stroke="Lime" StrokeThickness="1.5"
Width="{Binding Diameter}"
Height="{Binding Diameter}"
Canvas.Left="{Binding Left}"
Canvas.Top="{Binding Top}"/>
Width="{Binding Diameter}" Height="{Binding Diameter}"
Canvas.Left="{Binding Left}" Canvas.Top="{Binding Top}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</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>
<ItemsPanelTemplate><Canvas/></ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate x:DataType="models:Geometries+GeomPoint">
<Ellipse Fill="White" Stroke="Black" StrokeThickness="1"
Width="{Binding Size}"
Height="{Binding Size}"
Canvas.Left="{Binding Left}"
Canvas.Top="{Binding Top}"
/>
Width="{Binding Size}" Height="{Binding Size}"
Canvas.Left="{Binding Left}" Canvas.Top="{Binding Top}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>