Points are displayed now
This commit is contained in:
@@ -83,7 +83,10 @@
|
||||
<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>
|
||||
@@ -91,37 +94,39 @@
|
||||
<DataTemplate x:DataType="models:Geometries+GeomEdge">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user