Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cbf44a8b23 | |||
| 17e647e65d | |||
| 9fd0d7d9d5 | |||
| 7cc4374ad4 | |||
| ca6874c2b5 | |||
| 4826feb281 | |||
| adf3ba4d97 | |||
| 8cc6324d64 | |||
| 6fc4e0d669 | |||
| 5fd269f6bb |
@@ -14,20 +14,47 @@
|
|||||||
<TextBlock Text="{Binding Draw2DMsg}"/>
|
<TextBlock Text="{Binding Draw2DMsg}"/>
|
||||||
</Expander.Header>
|
</Expander.Header>
|
||||||
<UniformGrid Columns="3">
|
<UniformGrid Columns="3">
|
||||||
<Button ToolTip="{Binding PointToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button x:Name="PuntoBtn" ToolTip="Punto" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
Command="{Binding PointBaseCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
Command="{Binding PointCommand}" IsEnabled="{Binding bLayerOk}">
|
<Image Source="/Resources/DrawPanel/Point+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Vettore" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding PointVectorCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/Point.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Point.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding Line2PToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Riferimento" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding PointReferenceCommand}">
|
||||||
|
<Image Source="/Resources/DrawPanel/Point.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Linea 2 Punti" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding Line2PCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding Line2PBaseCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/Line2P+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Linea 2 Punti con Continuazione" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding Line2PContinuationCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/Line2P.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Line2P.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding LinePDLToolTip}" Style="{StaticResource DrawPanelButton}"
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Linea Punto Direzione Lunghezza" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding LinePDLCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding LinePDLBaseCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
<Image Source="/Resources/DrawPanel/LinePDL.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/LinePDL+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Linea Punto Vettore Direzione Lunghezza" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding LinePDLVectorCommand}">
|
||||||
|
<Image Source="/Resources/DrawPanel/Line2P.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding ArcCSEToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding ArcCSEToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
@@ -39,11 +66,19 @@
|
|||||||
Command="{Binding Arc3PCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding Arc3PCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
<Image Source="/Resources/DrawPanel/Arc3P.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Arc3P.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding ArcPDPToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Arco " Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ArcPDPCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding ArcPDPCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/ArcPDP+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Linea Punto Vettore Direzione Lunghezza" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding LinePDLVectorCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/ArcPDP.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ArcPDP.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding CirclePDToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding CirclePDToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding CircleCPCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding CircleCPCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
@@ -74,25 +109,57 @@
|
|||||||
Command="{Binding PolygonSideCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding PolygonSideCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
<Image Source="/Resources/DrawPanel/PolygonSide.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/PolygonSide.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding LinearDimensionToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Quota Lineare" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding LinearDimensionCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding LinearDimensionBaseCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/LinearDimension+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Quota Allineata" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding AlignedDimensionCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/LinearDimension.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/LinearDimension.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding AngularDimensionToolTip}" Style="{StaticResource DrawPanelButton}"
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Quota Angolare" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding AngularDimensionCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding AngularDimensionBaseCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/AngularDimension +.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Quota Angolare Avanzata" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding AlignedDimensionPlusCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/AngularDimension.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/AngularDimension.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding DiamRadDimensionToolTip}" Style="{StaticResource DrawPanelButton}"
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Quota Diametrale" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding DiamRadDimensionCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding DiamDimensionCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/DiametralDimension+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Quota Radiale" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding RadDimensionCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/DiametralDimension.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/DiametralDimension.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding TextToolTip}" Style="{StaticResource DrawPanelButton}"
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Testo" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding TextCommand}" IsEnabled="{Binding bLayerOk}">
|
Command="{Binding TextBaseCommand}" IsEnabled="{Binding bLayerOk}">
|
||||||
<Image Source="/Resources/DrawPanel/Text.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Text+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Testo Avanzato" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding TextPlusCommand}">
|
||||||
|
<Image Source="/Resources/DrawPanel/TextA.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
</Button>
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Expander>
|
</Expander>
|
||||||
@@ -102,11 +169,19 @@
|
|||||||
<TextBlock Text="{Binding Draw3DMsg}"/>
|
<TextBlock Text="{Binding Draw3DMsg}"/>
|
||||||
</Expander.Header>
|
</Expander.Header>
|
||||||
<UniformGrid Columns="3">
|
<UniformGrid Columns="3">
|
||||||
<Button ToolTip="{Binding PlaneToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Piano Contornato" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding PlaneCommand}" IsEnabled="{Binding bLayerOkAndSelOk}">
|
Command="{Binding FloorCommand}" IsEnabled="{Binding bLayerOkAndSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/Plane+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Regione Piana" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding RegionCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/Plane.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Plane.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding ExtrudeToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding ExtrudeToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ExtrudeCommand}" IsEnabled="{Binding bLayerOkAndSelOk}">
|
Command="{Binding ExtrudeCommand}" IsEnabled="{Binding bLayerOkAndSelOk}">
|
||||||
@@ -137,16 +212,32 @@
|
|||||||
Command="{Binding SolidAddSurfCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding SolidAddSurfCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/SolidAddSurf.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/SolidAddSurf.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding SolidSubtractSurfToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Sottrai Superfici e Regioni Piane" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding SolidSubtractSurfCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding SubtractSurfacesCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/SolidSubtractSurf+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Taglia Superficie con Superficie Inversa" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding CutSurfacesCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/SolidSubtractSurf.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/SolidSubtractSurf.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding SolidIntersectSurfToolTip}" Style="{StaticResource DrawPanelButton}"
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Interseca Superfici e Regioni Piane" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding SolidIntersectSurfCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding IntersectSurfCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/SolidIntersectSurf+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Taglia Superficie con Superficie" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding CutSurfCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/SolidIntersectSurf.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/SolidIntersectSurf.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding IntersectSurfSurfToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding IntersectSurfSurfToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding IntersectSurfSurfCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding IntersectSurfSurfCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
@@ -162,11 +253,19 @@
|
|||||||
Command="{Binding ExtractFacetLoopsCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ExtractFacetLoopsCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/ExtractFacetLoops.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ExtractFacetLoops.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding ExplodeSurfToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Esplodi Superfici e Regioni Piane" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ExplodeSurfCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ExplodeSurfaceCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/ExplodeSurf+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Esplodi Superfici Mesh in Triangoli" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding ExplodeSurfaceMeshCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/ExplodeSurf.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ExplodeSurf.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding ExtractSurfFacetToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding ExtractSurfFacetToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ExtractSurfFacetCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ExtractSurfFacetCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
@@ -187,11 +286,19 @@
|
|||||||
Command="{Binding ApproxSurfCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ApproxSurfCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/ApproxSurf.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ApproxSurf.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding StmMoveVertexFacetToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Muovi Vertice di Superficie" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding MoveStmVertexFacetCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding MoveStmVertexCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/StmMoveVertex+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Muovi Faccia di Superficie" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding MoveStmFacetCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/StmMoveVertex.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/StmMoveVertex.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Expander>
|
</Expander>
|
||||||
<Expander Name="Modify" Style="{StaticResource ExpanderStyle}" Grid.Row="2" IsExpanded="{Binding ModifyIsExpanded}">
|
<Expander Name="Modify" Style="{StaticResource ExpanderStyle}" Grid.Row="2" IsExpanded="{Binding ModifyIsExpanded}">
|
||||||
@@ -204,11 +311,19 @@
|
|||||||
Command="{Binding DeleteCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding DeleteCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/Delete.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Delete.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding ChangeLayerToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Cambia Layer" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ChangeLayerCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ChangeLayerBaseCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/ChangeLayer+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Cambia Layer con Trasformazioni" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding ChangeLayerTrasfCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/ChangeLayer.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ChangeLayer.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding ChangeStatusToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding ChangeStatusToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ChangeStatusCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ChangeStatusCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
@@ -264,11 +379,23 @@
|
|||||||
Command="{Binding ExplodeCurveCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ExplodeCurveCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/ExplodeCurve.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ExplodeCurve.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding JoinCurveToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Unisci Curve" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding JoinCurveCommand}" IsEnabled="{Binding bLayerOkAndSelOk}">
|
Command="{Binding JoinCurveBasCommand}" IsEnabled="{Binding bLayerOkAndSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/JoinCurve+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Unisci Curve creando una Copia" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding JoinCurveCopyCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/JoinCurve.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/JoinCurve.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button ToolTip="Fondi Curve nella Composita" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding JoinCurveCompositeCommand}">
|
||||||
|
<Image Source="/Resources/DrawPanel/JoinCurve.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding OffsetToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding OffsetToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding OffsetCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding OffsetCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
@@ -284,31 +411,70 @@
|
|||||||
Command="{Binding ChamferCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ChamferCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/Chamfer.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/Chamfer.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding ArcFlipToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Arco Capovolto" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
Command="{Binding UpsideDownArchCommand}" ToolTipService.ShowOnDisabled="True" IsEnabled="{Binding bSelOk}">
|
||||||
Command="{Binding ArcFlipCommand}" IsEnabled="{Binding bSelOk}">
|
<Image Source="/Resources/DrawPanel/ArcFlip+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu >
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Arco Esplementare" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding ComplementaryArchCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/ArcFlip.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ArcFlip.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding ModifyCurveToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding ModifyCurveToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ModifyCurveCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ModifyCurveCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
<Image Source="/Resources/DrawPanel/ModifyCurve.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ModifyCurve.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding AddPointCurveToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Aggiungi Punto" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding AddPointCurveCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding AddPointCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/AddPointCurve+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Trasforma in Arco" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding TrasformArcCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/AddPointCurve.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/AddPointCurve.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding RemovePointCurveToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Chiudi Curva Composita" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding CloseCurveCommand}">
|
||||||
|
<Image Source="/Resources/DrawPanel/AddPointCurve.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Rimuovi Punto" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding RemovePointCurveCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding RemoveCurveCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/RemovePointCurve+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Trasforma in Retta" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding TrasformRectCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/RemovePointCurve.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/RemovePointCurve.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button ToolTip="{Binding ApproxCurveToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="Apri Curva Composita" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding OpenCurveCommand}">
|
||||||
|
<Image Source="/Resources/DrawPanel/RemovePointCurve.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="Approssima Curva" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ApproxCurveCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ApproxCurveBaseCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
<Image Source="/Resources/DrawPanel/ApproxCurve+.png" Stretch="Uniform"/>
|
||||||
|
<Button.ContextMenu>
|
||||||
|
<ContextMenu Style="{StaticResource ContextMenu_Button}">
|
||||||
|
<Button ToolTip="Approssima Curva con Linee" Style="{StaticResource DrawPanelButton}"
|
||||||
|
Command="{Binding ApproxCurveLineCommand}">
|
||||||
<Image Source="/Resources/DrawPanel/ApproxCurve.png" Stretch="Uniform"/>
|
<Image Source="/Resources/DrawPanel/ApproxCurve.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
</ContextMenu>
|
||||||
|
</Button.ContextMenu>
|
||||||
|
</Button>
|
||||||
<Button ToolTip="{Binding ModifyArcRadiusToolTip}" Style="{StaticResource DrawPanelButton}"
|
<Button ToolTip="{Binding ModifyArcRadiusToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||||
ToolTipService.ShowOnDisabled="True"
|
ToolTipService.ShowOnDisabled="True"
|
||||||
Command="{Binding ModifyArcRadiusCommand}" IsEnabled="{Binding bSelOk}">
|
Command="{Binding ModifyArcRadiusCommand}" IsEnabled="{Binding bSelOk}">
|
||||||
|
|||||||
@@ -1035,6 +1035,66 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Resources\DrawPanel\StmMoveVertex.png" />
|
<Resource Include="Resources\DrawPanel\StmMoveVertex.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\Point+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\Line2P+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\LinePDL+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\ArcPDP+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\Text+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\TextA.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\ArcFlip+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\LinearDimension+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\AngularDimension +.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\DiametralDimension+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\Plane+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\SolidSubtractSurf+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\SolidIntersectSurf+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\ExplodeSurf+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\StmMoveVertex+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\ChangeLayer+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\JoinCurve+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\AddPointCurve+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\RemovePointCurve+.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\DrawPanel\ApproxCurve+.png" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe
|
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe
|
||||||
|
|||||||
@@ -5,5 +5,4 @@
|
|||||||
DockPanel.Dock="Left">
|
DockPanel.Dock="Left">
|
||||||
|
|
||||||
<local:DrawPanelV DataContext="{StaticResource DrawPanelViewModel}"/>
|
<local:DrawPanelV DataContext="{StaticResource DrawPanelViewModel}"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
MinHeight="600" MinWidth="800" WindowStyle="None" ResizeMode="NoResize"
|
MinHeight="600" MinWidth="800" WindowStyle="None" ResizeMode="NoResize"
|
||||||
AboutBoxCommand="{Binding AboutBoxCommand}"
|
AboutBoxCommand="{Binding AboutBoxCommand}"
|
||||||
AllowDrop="True" Drop="MainWindow_Drop"
|
AllowDrop="True" Drop="MainWindow_Drop"
|
||||||
|
SnapsToDevicePixels="True"
|
||||||
CloseCommand="{Binding CloseApplicationCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
CloseCommand="{Binding CloseApplicationCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
||||||
<EgtWPFLib5:EgtCustomWindow.TitlePanel>
|
<EgtWPFLib5:EgtCustomWindow.TitlePanel>
|
||||||
<local:TopCommandBarV DataContext="{StaticResource TopCommandBarViewModel}"/>
|
<local:TopCommandBarV DataContext="{StaticResource TopCommandBarViewModel}"/>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ Public Class MainWindowVM
|
|||||||
Private m_sDataRoot As String = String.Empty
|
Private m_sDataRoot As String = String.Empty
|
||||||
Private m_sConfigDir As String = String.Empty
|
Private m_sConfigDir As String = String.Empty
|
||||||
Private m_OnTerminateProcessCallback As New OnTerminateProcessCallback(AddressOf OnTerminateProcess)
|
Private m_OnTerminateProcessCallback As New OnTerminateProcessCallback(AddressOf OnTerminateProcess)
|
||||||
|
Private m_IndexTab As Integer = 0
|
||||||
|
|
||||||
' EGALTECH ENVIRONMENT FIELDS WITH PROPERTY
|
' EGALTECH ENVIRONMENT FIELDS WITH PROPERTY
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<TextBlock Text="{Binding PropertiesMsg}"/>
|
<TextBlock Text="{Binding PropertiesMsg}"/>
|
||||||
</Expander.Header>
|
</Expander.Header>
|
||||||
<UniformGrid>
|
<UniformGrid>
|
||||||
<TextBox Text="{Binding InfoBox, Mode=OneWay}" MaxHeight="100" IsReadOnly="True"
|
<TextBox Text="{Binding InfoBox, Mode=OneWay}" MaxHeight="250" IsReadOnly="True"
|
||||||
HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/>
|
HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Expander>
|
</Expander>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<Button Content="{Binding ColorMsg}" Command="{Binding LayerColorCommand}" Height="30"/>
|
<Button Content="{Binding ColorMsg}" Command="{Binding LayerColorCommand}" Height="30"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
|
||||||
<TreeView Name="LayerTreeView" MinHeight="150" MaxHeight="250"
|
<TreeView Name="LayerTreeView" MinHeight="250" MaxHeight="400"
|
||||||
ItemsSource="{Binding Path=LayerList}"
|
ItemsSource="{Binding Path=LayerList}"
|
||||||
VirtualizingStackPanel.IsVirtualizing = "True"
|
VirtualizingStackPanel.IsVirtualizing = "True"
|
||||||
VirtualizingStackPanel.VirtualizationMode = "Recycling">
|
VirtualizingStackPanel.VirtualizationMode = "Recycling">
|
||||||
|
|||||||
@@ -1,15 +1,30 @@
|
|||||||
<UserControl x:Class="DrawOptionPanelV"
|
<UserControl x:Class="DrawOptionPanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="250"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
||||||
|
|
||||||
<StackPanel Name="ciao" Background="Transparent" Margin="0,0,3.5001,0" MaxHeight="{Binding MaxHeight,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}">
|
<!--<StackPanel Name="ciao" Background="Transparent" MaxHeight="{Binding MaxHeight,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}">
|
||||||
|
--><!--ContentPresenter that contains the ManageLayerExpander--><!--
|
||||||
|
<ContentPresenter Content="{Binding ManageLayerExpander,Mode=OneWay}"/>
|
||||||
|
--><!--ContentPresenter that contains the InfoExpander--><!--
|
||||||
|
<ContentPresenter Content="{Binding InfoExpander}"/>
|
||||||
|
--><!--ContentPresenter that contains the InputExpander--><!--
|
||||||
|
<ContentPresenter Content="{Binding InputExpander}"/>
|
||||||
|
</StackPanel>-->
|
||||||
|
<Grid Name="ciao" Background="Transparent" MaxHeight="{Binding MaxHeight,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
<!--ContentPresenter that contains the ManageLayerExpander-->
|
<!--ContentPresenter that contains the ManageLayerExpander-->
|
||||||
<ContentPresenter Content="{Binding ManageLayerExpander,Mode=OneWay}"/>
|
<ContentPresenter Content="{Binding ManageLayerExpander,Mode=OneWay}"/>
|
||||||
|
<GridSplitter Grid.Row="0" Height="5" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
|
||||||
<!--ContentPresenter that contains the InfoExpander-->
|
<!--ContentPresenter that contains the InfoExpander-->
|
||||||
<ContentPresenter Content="{Binding InfoExpander}"/>
|
<ContentPresenter Grid.Row="1" Content="{Binding InfoExpander}"/>
|
||||||
|
<GridSplitter Grid.Row="1" Height="5" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
|
||||||
<!--ContentPresenter that contains the InputExpander-->
|
<!--ContentPresenter that contains the InputExpander-->
|
||||||
<ContentPresenter Content="{Binding InputExpander}"/>
|
<ContentPresenter Grid.Row="2" Content="{Binding InputExpander}"/>
|
||||||
</StackPanel>
|
</Grid>
|
||||||
|
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -109,6 +109,34 @@
|
|||||||
Visibility="{Binding SysNotes_Visibility}"
|
Visibility="{Binding SysNotes_Visibility}"
|
||||||
IsReadOnly="True"/>
|
IsReadOnly="True"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding InvertTxBl}"
|
||||||
|
ParamChBx="{Binding Path=Invert,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource CheckParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
|
||||||
|
ParamCmBxList="{Binding Path=WorkSideList,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}"
|
||||||
|
Style="{DynamicResource ComboParamV_Margin}"/>
|
||||||
|
<UniformGrid Columns="2">
|
||||||
|
<TextBlock Text="{Binding UserNotesTxBl}"
|
||||||
|
Style="{DynamicResource MPExpander_UserNotesTxBlMargin}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Text="{Binding UserNotes, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource MPExpander_UserNotesTxBxMargin}">
|
||||||
|
<EgtWPFLib5:EgtTextBox.ToolTip>
|
||||||
|
<TextBlock Text="{Binding UserNotesTooltip}"/>
|
||||||
|
</EgtWPFLib5:EgtTextBox.ToolTip>
|
||||||
|
</EgtWPFLib5:EgtTextBox>
|
||||||
|
<TextBlock Text="{Binding SystemNotesTxBl}"
|
||||||
|
Style="{DynamicResource MPExpander_UserNotesTxBlMargin}"
|
||||||
|
Visibility="{Binding SysNotes_Visibility}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Text="{Binding SystemNotes, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource MPExpander_UserNotesTxBxMargin}"
|
||||||
|
Visibility="{Binding SysNotes_Visibility}"
|
||||||
|
IsReadOnly="True"/>
|
||||||
|
</UniformGrid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Name="AutomaticCloseExpanderStackPanel">
|
<StackPanel Name="AutomaticCloseExpanderStackPanel">
|
||||||
<Expander Header="{Binding GenericExpanderHeader}" Name="GenericExpander"
|
<Expander Header="{Binding GenericExpanderHeader}" Name="GenericExpander"
|
||||||
@@ -236,7 +264,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
@@ -266,6 +294,43 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Expander>
|
</Expander>
|
||||||
|
|
||||||
|
<Expander Style="{StaticResource ExpanderStyle}">
|
||||||
|
<Expander.Header>
|
||||||
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadInTypeTxBl}"
|
||||||
|
ParamCmBxList="{Binding Path=LeadInTypeList,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}"
|
||||||
|
Style="{DynamicResource ComboParamV_Margin}"/>
|
||||||
|
</Expander.Header>
|
||||||
|
<StackPanel>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartAddLenTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=StartAddLen,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LiTangTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LiTang,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LiPerpTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LiPerp,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LiElevTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LiElev,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LiCompLenTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LiCompLen,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Expander>
|
||||||
<Expander Style="{StaticResource ExpanderStyle}">
|
<Expander Style="{StaticResource ExpanderStyle}">
|
||||||
<Expander.Header>
|
<Expander.Header>
|
||||||
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadInTypeTxBl}"
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadInTypeTxBl}"
|
||||||
@@ -304,6 +369,43 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Expander>
|
</Expander>
|
||||||
|
|
||||||
|
<Expander Style="{StaticResource ExpanderStyle}">
|
||||||
|
<Expander.Header>
|
||||||
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadOutTypeTxBl}"
|
||||||
|
ParamCmBxList="{Binding Path=LeadOutTypeList,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"
|
||||||
|
Style="{DynamicResource ComboParamV_Margin}"/>
|
||||||
|
</Expander.Header>
|
||||||
|
<StackPanel>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndAddLenTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=EndAddLen,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LoTangTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LoTang,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LoPerpTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LoPerp,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LoElevTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LoElev,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LoCompLenTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=LoCompLen,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Expander>
|
||||||
<Expander Style="{StaticResource ExpanderStyle}">
|
<Expander Style="{StaticResource ExpanderStyle}">
|
||||||
<Expander.Header>
|
<Expander.Header>
|
||||||
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadOutTypeTxBl}"
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadOutTypeTxBl}"
|
||||||
@@ -342,6 +444,53 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Expander>
|
</Expander>
|
||||||
|
|
||||||
|
<Expander Style="{StaticResource ExpanderStyle}">
|
||||||
|
<Expander.Header>
|
||||||
|
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding LeaveTabTxBl}"
|
||||||
|
ParamChBx="{Binding Path=LeaveTab,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
Style="{DynamicResource CheckParamV_Margin}"/>
|
||||||
|
</Expander.Header>
|
||||||
|
<StackPanel Margin="2">
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TabLenTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=TabLen,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamErrorMsg="{Binding Path=TabLenErrorMsg}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TabHeightTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=TabHeight,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamErrorMsg="{Binding Path=TabHeightErrorMsg}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TabAngleTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=TabAngle,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamErrorMsg="{Binding Path=TabAngleErrorMsg}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TabDistTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=TabDist,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamErrorMsg="{Binding Path=TabDistErrorMsg}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TabMinTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=TabMin,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamErrorMsg="{Binding Path=TabMinErrorMsg}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TabMaxTxBl}"
|
||||||
|
ParamTxBx="{Binding Path=TabMax,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamErrorMsg="{Binding Path=TabMaxErrorMsg}"
|
||||||
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Expander>
|
||||||
<Expander Style="{StaticResource ExpanderStyle}">
|
<Expander Style="{StaticResource ExpanderStyle}">
|
||||||
<Expander.Header>
|
<Expander.Header>
|
||||||
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding LeaveTabTxBl}"
|
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding LeaveTabTxBl}"
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -80,4 +80,16 @@ Public Class FiveAxisMachinigParameterExpanderV
|
|||||||
Return TryCast(target, T)
|
Return TryCast(target, T)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Private Sub StackPanel_PreviewKeyDown(sender As Object, e As KeyEventArgs)
|
||||||
|
If e.Key = Key.Tab Then
|
||||||
|
Dim s As EgtWPFLib5.StringParamV = TryCast(e.OriginalSource, EgtWPFLib5.StringParamV)
|
||||||
|
|
||||||
|
If Not IsNothing(s) Then
|
||||||
|
s.MoveFocus(New TraversalRequest(FocusNavigationDirection.Next))
|
||||||
|
End If
|
||||||
|
|
||||||
|
e.Handled = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -214,7 +214,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -232,7 +232,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -129,13 +129,13 @@
|
|||||||
UpdateSourceTrigger=PropertyChanged,
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
ValidatesOnDataErrors=True}"
|
ValidatesOnDataErrors=True}"
|
||||||
Style="{DynamicResource StringParamV_Margin}"/>
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffsetSrTxBl}"
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffsetSlTxBl}"
|
||||||
ParamTxBx="{Binding Path=OffSr,
|
ParamTxBx="{Binding Path=OffSl,
|
||||||
UpdateSourceTrigger=PropertyChanged,
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
ValidatesOnDataErrors=True}"
|
ValidatesOnDataErrors=True}"
|
||||||
Style="{DynamicResource StringParamV_Margin}"/>
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffsetSlTxBl}"
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffsetSrTxBl}"
|
||||||
ParamTxBx="{Binding Path=OffSl,
|
ParamTxBx="{Binding Path=OffSr,
|
||||||
UpdateSourceTrigger=PropertyChanged,
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
ValidatesOnDataErrors=True}"
|
ValidatesOnDataErrors=True}"
|
||||||
Style="{DynamicResource StringParamV_Margin}"/>
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -213,7 +213,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -211,7 +211,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -209,7 +209,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -124,6 +124,12 @@
|
|||||||
UpdateSourceTrigger=PropertyChanged,
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
ValidatesOnDataErrors=True}"
|
ValidatesOnDataErrors=True}"
|
||||||
Style="{DynamicResource StringParamV_Margin}"/>
|
Style="{DynamicResource StringParamV_Margin}"/>
|
||||||
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadLinkTypeTxBl}"
|
||||||
|
ParamCmBxList="{Binding Path=LeadLinkTypeList,
|
||||||
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
|
ValidatesOnDataErrors=True}"
|
||||||
|
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}"
|
||||||
|
Style="{DynamicResource ComboParamV_Margin}"/>
|
||||||
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngleTxBl}"
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngleTxBl}"
|
||||||
ParamTxBx="{Binding Path=SideAngle,
|
ParamTxBx="{Binding Path=SideAngle,
|
||||||
UpdateSourceTrigger=PropertyChanged,
|
UpdateSourceTrigger=PropertyChanged,
|
||||||
@@ -224,7 +230,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -199,7 +199,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -218,7 +218,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -236,7 +236,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
IsReadOnly="False"/>
|
IsReadOnly="False"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="CHECKBOX">
|
<TabItem Header="CHECKBOX">
|
||||||
<CheckBox IsChecked="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
|
<CheckBox IsChecked="{Binding Value}"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<Button Command="{Binding RemoveItemNoteCommand}"
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<UserControl x:Class="MachiningOptionPanelV"
|
<UserControl x:Class="MachiningOptionPanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="250"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
||||||
|
|
||||||
<StackPanel Name="ciao" Background="Transparent" Margin="0,0,3.5001,0" MaxHeight="{Binding MaxHeight,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}">
|
<StackPanel Name="ciao" Background="Transparent" MaxHeight="{Binding MaxHeight,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}">
|
||||||
<!--ContentPresenter that contains the OperationsListExpander-->
|
<!--ContentPresenter that contains the OperationsListExpander-->
|
||||||
<ContentPresenter Content="{Binding OperationsListExpander,Mode=OneWay}"/>
|
<ContentPresenter Content="{Binding OperationsListExpander,Mode=OneWay}"/>
|
||||||
<!--ContentPresenter that contains the OperationParametersExpander-->
|
<!--ContentPresenter that contains the OperationParametersExpander-->
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<EgtFloating:EgtFloatingPanel x:Class="OptionPanelV"
|
<EgtFloating:EgtFloatingPanel x:Class="OptionPanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="250"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
|
||||||
TitleBarOrientation="Vertical"
|
TitleBarOrientation="Vertical"
|
||||||
Visibility="{Binding Panel_Visibility}">
|
Visibility="{Binding Panel_Visibility}">
|
||||||
|
|||||||
@@ -58,6 +58,20 @@ Public Class ProjectVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_DynamicGrid As New Grid()
|
||||||
|
Public ReadOnly Property DynamicGrid As Grid
|
||||||
|
Get
|
||||||
|
Return m_DynamicGrid
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_DynamicGridList As New List(Of Object)
|
||||||
|
Public ReadOnly Property DynamicGridList As List(Of Object)
|
||||||
|
Get
|
||||||
|
Return m_DynamicGridList
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "EGTUILIB FIELDS"
|
#Region "EGTUILIB FIELDS"
|
||||||
@@ -79,6 +93,17 @@ Public Class ProjectVM
|
|||||||
TMDbParamVisibility.bFirst = True
|
TMDbParamVisibility.bFirst = True
|
||||||
' Inizializza i parametri della scena
|
' Inizializza i parametri della scena
|
||||||
'InitializeEgtProject()
|
'InitializeEgtProject()
|
||||||
|
|
||||||
|
Dim m_TopTrayV As New TopTrayV
|
||||||
|
Dim m_LeftTrayV As New LeftTrayV
|
||||||
|
Dim m_RightTrayV As New RightTrayV
|
||||||
|
Dim m_BottomTrayV As New BottomTrayV
|
||||||
|
Dim m_SceneContentControlV As New SceneContentControlV
|
||||||
|
|
||||||
|
CreateDynamicGrid()
|
||||||
|
|
||||||
|
Dim gridSplitter As GridSplitter = CreateGridSplitter()
|
||||||
|
|
||||||
' aggiungo componenti interfaccia
|
' aggiungo componenti interfaccia
|
||||||
Dim bPlugin As Boolean = False
|
Dim bPlugin As Boolean = False
|
||||||
Dim PluginDirNameList() As String = {}
|
Dim PluginDirNameList() As String = {}
|
||||||
@@ -105,30 +130,57 @@ Public Class ProjectVM
|
|||||||
Dim ConfigurationData As IPluginConfigData = Map.refMainWindowVM.GetConfigData(Of IPluginConfigData)(PluginName & ".ConfigurationData")
|
Dim ConfigurationData As IPluginConfigData = Map.refMainWindowVM.GetConfigData(Of IPluginConfigData)(PluginName & ".ConfigurationData")
|
||||||
If Not IsNothing(ConfigurationData) And ConfigurationData.ControlList.Count > 0 Then
|
If Not IsNothing(ConfigurationData) And ConfigurationData.ControlList.Count > 0 Then
|
||||||
For Each Element In ConfigurationData.ControlList
|
For Each Element In ConfigurationData.ControlList
|
||||||
|
PopolateGridWithPlugIn(m_TopTrayV, m_RightTrayV, m_BottomTrayV, m_SceneContentControlV, gridSplitter)
|
||||||
Select Case Element.Name
|
Select Case Element.Name
|
||||||
Case PLUGIN_RIGHT_TRAY
|
Case PLUGIN_RIGHT_TRAY
|
||||||
m_PanelList.Add(New RightTrayV)
|
'm_PanelList.Add(New RightTrayV)
|
||||||
|
'aggiungo RightTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_RightTrayV)
|
||||||
Map.refOptionPanelVM.SetPanelViewState(Element.ViewPanelState)
|
Map.refOptionPanelVM.SetPanelViewState(Element.ViewPanelState)
|
||||||
Case PLUGIN_LEFT_TRAY
|
Case PLUGIN_LEFT_TRAY
|
||||||
m_PanelList.Add(New LeftTrayV)
|
'm_PanelList.Add(New LeftTrayV)
|
||||||
|
' aggiungo LeftTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_LeftTrayV)
|
||||||
Case Else
|
Case Else
|
||||||
m_PanelList.Add(Map.refMainWindowVM.GetControlByName(Of IPluginControl)(Element))
|
m_PanelList.Add(Map.refMainWindowVM.GetControlByName(Of IPluginControl)(Element))
|
||||||
|
' aggiungo LeftTrayV alla griglia
|
||||||
|
'm_DynamicGrid.Children.Add(Map.refMainWindowVM.GetControlByName(Of IPluginControl)(Element))
|
||||||
End Select
|
End Select
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
m_PanelList.Add(New BottomTrayV)
|
' aggiungo gridSplitter alla griglia
|
||||||
m_PanelList.Add(New TopTrayV)
|
m_DynamicGrid.Children.Add(gridSplitter)
|
||||||
|
'm_PanelList.Add(New BottomTrayV)
|
||||||
|
' aggiungo BottomTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_BottomTrayV)
|
||||||
|
'm_PanelList.Add(New TopTrayV)
|
||||||
|
' aggiungo TopTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_TopTrayV)
|
||||||
' nascondo tasti gestione progetto se attivo plugin
|
' nascondo tasti gestione progetto se attivo plugin
|
||||||
Map.refTopCommandBarVM.SetProjectManagerVisibility(False)
|
Map.refTopCommandBarVM.SetProjectManagerVisibility(False)
|
||||||
Else
|
Else
|
||||||
m_PanelList.Add(New TopTrayV)
|
PololateGrid(m_TopTrayV, m_LeftTrayV, m_RightTrayV, m_BottomTrayV, m_SceneContentControlV, gridSplitter)
|
||||||
m_PanelList.Add(New LeftTrayV)
|
'm_PanelList.Add(New TopTrayV)
|
||||||
m_PanelList.Add(New RightTrayV)
|
'm_PanelList.Add(New LeftTrayV)
|
||||||
m_PanelList.Add(New BottomTrayV)
|
'm_PanelList.Add(New RightTrayV)
|
||||||
|
'm_PanelList.Add(New BottomTrayV)
|
||||||
|
' aggiungo TopTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_TopTrayV)
|
||||||
|
' aggiungo LeftTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_LeftTrayV)
|
||||||
|
' aggiungo gridSplitter alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(gridSplitter)
|
||||||
|
' aggiungo RightTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_RightTrayV)
|
||||||
|
' aggiungo BottomTrayV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_BottomTrayV)
|
||||||
End If
|
End If
|
||||||
m_PanelList.Add(New SceneContentControlV)
|
'm_PanelList.Add(New SceneContentControlV)
|
||||||
|
' aggiungo SceneContentControlV alla griglia
|
||||||
|
m_DynamicGrid.Children.Add(m_SceneContentControlV)
|
||||||
|
m_PanelList.Add(m_DynamicGrid)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
@@ -292,6 +344,125 @@ Public Class ProjectVM
|
|||||||
|
|
||||||
#Region "METHODS"
|
#Region "METHODS"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Funzione per popolare la griglia
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="m_TopTrayV"></param>
|
||||||
|
''' <param name="m_LeftTrayV"></param>
|
||||||
|
''' <param name="m_RightTrayV"></param>
|
||||||
|
''' <param name="m_BottomTrayV"></param>
|
||||||
|
''' <param name="m_SceneContentControlV"></param>
|
||||||
|
''' <param name="gridSplitter"></param>
|
||||||
|
Private Shared Sub PololateGrid(m_TopTrayV As TopTrayV, m_LeftTrayV As LeftTrayV, m_RightTrayV As RightTrayV, m_BottomTrayV As BottomTrayV, m_SceneContentControlV As SceneContentControlV, gridSplitter As GridSplitter)
|
||||||
|
' aggiungo TopTrayV
|
||||||
|
Grid.SetRow(m_TopTrayV, 0)
|
||||||
|
Grid.SetColumnSpan(m_TopTrayV, 3)
|
||||||
|
|
||||||
|
' aggiungo LeftTrayV
|
||||||
|
Grid.SetRow(m_LeftTrayV, 1)
|
||||||
|
Grid.SetColumn(m_LeftTrayV, 0)
|
||||||
|
Grid.SetRowSpan(m_LeftTrayV, 2)
|
||||||
|
|
||||||
|
' aggiungo RightTrayV
|
||||||
|
Grid.SetRow(m_RightTrayV, 1)
|
||||||
|
Grid.SetColumn(m_RightTrayV, 2)
|
||||||
|
Grid.SetRowSpan(m_RightTrayV, 2)
|
||||||
|
|
||||||
|
'aggiungo gridSplitter
|
||||||
|
Grid.SetRow(gridSplitter, 1)
|
||||||
|
Grid.SetColumn(gridSplitter, 2)
|
||||||
|
|
||||||
|
' aggiungo BottomTrayV
|
||||||
|
Grid.SetRow(m_BottomTrayV, 2)
|
||||||
|
Grid.SetColumn(m_BottomTrayV, 1)
|
||||||
|
|
||||||
|
' aggiungo Scena
|
||||||
|
Grid.SetRow(m_SceneContentControlV, 1)
|
||||||
|
Grid.SetColumn(m_SceneContentControlV, 1)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Funzione per popolare la griglia con PlugIn
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="m_TopTrayV"></param>
|
||||||
|
''' <param name="m_RightTrayV"></param>
|
||||||
|
''' <param name="m_BottomTrayV"></param>
|
||||||
|
''' <param name="m_SceneContentControlV"></param>
|
||||||
|
''' <param name="gridSplitter"></param>
|
||||||
|
Private Shared Sub PopolateGridWithPlugIn(m_TopTrayV As TopTrayV, m_RightTrayV As RightTrayV, m_BottomTrayV As BottomTrayV, m_SceneContentControlV As SceneContentControlV, gridSplitter As GridSplitter)
|
||||||
|
' aggiungo TopTrayV
|
||||||
|
Grid.SetRow(m_TopTrayV, 0)
|
||||||
|
Grid.SetColumn(m_TopTrayV, 1)
|
||||||
|
|
||||||
|
' aggiungo RightTrayV
|
||||||
|
Grid.SetRow(m_RightTrayV, 0)
|
||||||
|
Grid.SetColumn(m_RightTrayV, 2)
|
||||||
|
Grid.SetRowSpan(m_RightTrayV, 2)
|
||||||
|
|
||||||
|
'aggiungo gridSplitter
|
||||||
|
Grid.SetRow(gridSplitter, 0)
|
||||||
|
Grid.SetColumn(gridSplitter, 2)
|
||||||
|
Grid.SetRowSpan(gridSplitter, 2)
|
||||||
|
|
||||||
|
' aggiungo BottomTrayV
|
||||||
|
Grid.SetRow(m_BottomTrayV, 2)
|
||||||
|
Grid.SetColumn(m_BottomTrayV, 1)
|
||||||
|
|
||||||
|
' aggiungo Scena
|
||||||
|
Grid.SetRow(m_SceneContentControlV, 1)
|
||||||
|
Grid.SetColumn(m_SceneContentControlV, 1)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Creazione GridSplitter
|
||||||
|
''' </summary>
|
||||||
|
''' <returns></returns>
|
||||||
|
Private Shared Function CreateGridSplitter() As GridSplitter
|
||||||
|
' creo gridsplitter
|
||||||
|
Return New GridSplitter With {
|
||||||
|
.Width = 30,
|
||||||
|
.HorizontalAlignment = HorizontalAlignment.Left,
|
||||||
|
.VerticalAlignment = VerticalAlignment.Stretch,
|
||||||
|
.Background = Brushes.Transparent
|
||||||
|
}
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Creazione Griglia Dinamica
|
||||||
|
''' </summary>
|
||||||
|
Private Sub CreateDynamicGrid()
|
||||||
|
' creo colonne griglia dinamica
|
||||||
|
Dim gridCol1 As New ColumnDefinition With {
|
||||||
|
.Width = New GridLength(1, GridUnitType.Auto)
|
||||||
|
}
|
||||||
|
'.Width = New GridLength(1, GridUnitType.Auto)
|
||||||
|
Dim gridCol2 As New ColumnDefinition With {
|
||||||
|
.Width = New GridLength(1, GridUnitType.Star)
|
||||||
|
}
|
||||||
|
Dim gridCol3 As New ColumnDefinition With {
|
||||||
|
.Width = New GridLength(250)
|
||||||
|
}
|
||||||
|
' aggiungo le colonne alla griglia
|
||||||
|
m_DynamicGrid.ColumnDefinitions.Add(gridCol1)
|
||||||
|
m_DynamicGrid.ColumnDefinitions.Add(gridCol2)
|
||||||
|
m_DynamicGrid.ColumnDefinitions.Add(gridCol3)
|
||||||
|
|
||||||
|
' creo righe griglia dinamica
|
||||||
|
Dim gridRow1 As New RowDefinition With {
|
||||||
|
.Height = New GridLength(1, GridUnitType.Auto)
|
||||||
|
}
|
||||||
|
Dim gridRow2 As New RowDefinition With {
|
||||||
|
.Height = New GridLength(1, GridUnitType.Star)
|
||||||
|
}
|
||||||
|
Dim gridRow3 As New RowDefinition With {
|
||||||
|
.Height = New GridLength(1, GridUnitType.Auto)
|
||||||
|
}
|
||||||
|
' aggiungo righe alla griglia
|
||||||
|
m_DynamicGrid.RowDefinitions.Add(gridRow1)
|
||||||
|
m_DynamicGrid.RowDefinitions.Add(gridRow2)
|
||||||
|
m_DynamicGrid.RowDefinitions.Add(gridRow3)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub PreInitializeScene()
|
Private Sub PreInitializeScene()
|
||||||
' imposto colore di default
|
' imposto colore di default
|
||||||
Dim DefColor As New Color3d(0, 0, 0)
|
Dim DefColor As New Color3d(0, 0, 0)
|
||||||
|
|||||||
|
After Width: | Height: | Size: 951 B |
|
After Width: | Height: | Size: 688 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 875 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 640 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 614 B |
|
After Width: | Height: | Size: 842 B |
|
After Width: | Height: | Size: 837 B |
|
After Width: | Height: | Size: 821 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 498 B |
|
After Width: | Height: | Size: 885 B |
|
After Width: | Height: | Size: 996 B |
@@ -2,6 +2,8 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="clr-namespace:EgtCAM5"
|
xmlns:local="clr-namespace:EgtCAM5"
|
||||||
DockPanel.Dock="Right">
|
DockPanel.Dock="Right"
|
||||||
|
Margin="0.5,0,0,0">
|
||||||
|
|
||||||
<local:OptionPanelV DataContext="{StaticResource OptionPanelViewModel}"/>
|
<local:OptionPanelV DataContext="{StaticResource OptionPanelViewModel}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
<EgtCAM5:DoorPanelVM x:Key="DoorsPanelViewModel"/>
|
<EgtCAM5:DoorPanelVM x:Key="DoorsPanelViewModel"/>
|
||||||
<EgtCAM5:GunStockPanelVM x:Key="GunStockPanelViewModel"/>
|
<EgtCAM5:GunStockPanelVM x:Key="GunStockPanelViewModel"/>
|
||||||
<EgtCAM5:MyMachGroupPanelVM x:Key="MachGroupPanelViewModel"/>
|
<EgtCAM5:MyMachGroupPanelVM x:Key="MachGroupPanelViewModel"/>
|
||||||
|
<EgtCAM5:WinFormPluginControlVM x:Key="WinFormPluginControlViewModel"/>
|
||||||
<!--<EgtCAM5:MachGroupPanelVM x:Key="MachGroupPanelViewModel"/>-->
|
<!--<EgtCAM5:MachGroupPanelVM x:Key="MachGroupPanelViewModel"/>-->
|
||||||
<!--<EgtCAM5:OperationExpanderVM x:Key="OperationExpanderViewModel"/>-->
|
<!--<EgtCAM5:OperationExpanderVM x:Key="OperationExpanderViewModel"/>-->
|
||||||
|
|
||||||
@@ -458,6 +459,10 @@
|
|||||||
<Style x:Key="DrawPanelButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
<Style x:Key="DrawPanelButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
||||||
<Setter Property="Height" Value="30"/>
|
<Setter Property="Height" Value="30"/>
|
||||||
<Setter Property="Width" Value="30"/>
|
<Setter Property="Width" Value="30"/>
|
||||||
|
<Setter Property="ToolTipService.ShowOnDisabled" Value="True"/>
|
||||||
|
<Setter Property="ContextMenuService.Placement" Value="Right"/>
|
||||||
|
<Setter Property="ContextMenuService.HorizontalOffset" Value="-1.5"/>
|
||||||
|
<Setter Property="ContextMenuService.VerticalOffset" Value="-3.5"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="MachiningsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
<Style x:Key="MachiningsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
@@ -1258,6 +1263,26 @@
|
|||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="ListBoxItemStyle" TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="ListBoxItem">
|
||||||
|
<Border Name="_Border"
|
||||||
|
SnapsToDevicePixels="True"
|
||||||
|
BorderBrush="{StaticResource EgaltechWhite}"
|
||||||
|
BorderThickness="1">
|
||||||
|
<ContentPresenter />
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsSelected" Value="True">
|
||||||
|
<Setter TargetName="_Border" Property="Background" Value="{StaticResource Button.Pressed.Background}"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
<!-- Style CheckBox -->
|
<!-- Style CheckBox -->
|
||||||
@@ -1272,4 +1297,20 @@
|
|||||||
</Style.Triggers>-->
|
</Style.Triggers>-->
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
|
||||||
|
<ItemsPanelTemplate x:Key="MenuItemPanelTemplate">
|
||||||
|
<StackPanel Margin="-38,0,0,0" Background="Transparent" />
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
|
||||||
|
<Style x:Key="ContextMenu_Button" TargetType="{x:Type ContextMenu}">
|
||||||
|
<Setter Property="ItemsPanel" Value="{StaticResource MenuItemPanelTemplate}"/>
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
|
<Setter Property="Width" Value="37"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<Grid x:Class="WinFormPluginControlV"
|
<Grid x:Class="WinFormPluginControlV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtCAM5="clr-namespace:EgtCAM5"
|
||||||
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
|
||||||
DockPanel.Dock="{Binding DockSide}"
|
DockPanel.Dock="{Binding DockSide}"
|
||||||
Height="{Binding Height}"
|
Height="{Binding Height}"
|
||||||
Width="{Binding Width}"
|
Width="{Binding Width}"
|
||||||
|
|||||||
@@ -49,13 +49,13 @@
|
|||||||
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
|
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
|
||||||
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
|
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
|
||||||
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
|
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
|
||||||
<!--
|
|
||||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
<windowsSettings>
|
<windowsSettings>
|
||||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||||
</windowsSettings>
|
</windowsSettings>
|
||||||
</application>
|
</application>
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
|
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
|
||||||
<!--
|
<!--
|
||||||
|
|||||||