-introdotto griglia dinamica per gestire spostamento colonne
This commit is contained in:
@@ -24,6 +24,7 @@ Public Class LayerTreeViewItem
|
||||
Set(value As Boolean)
|
||||
If (value <> m_isSelected) Then
|
||||
m_isSelected = value
|
||||
Map.refDrawOptionPanelVM.SetInfoRowIsExpanded(value)
|
||||
If value Then
|
||||
' recupero l'Id del nuovo oggetto selezionato
|
||||
Map.refManageLayerExpanderVM.IsRightClickedLayerTreeItem(False)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
xmlns:expression="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
|
||||
xmlns:local="clr-namespace:EgtCAM5">
|
||||
|
||||
<Expander IsExpanded="True" Style="{StaticResource ExpanderStyle}">
|
||||
<Expander IsExpanded="{Binding ManageLayerIsExpanded}" Style="{StaticResource ExpanderStyle}">
|
||||
<Expander.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding HeaderName}" Margin="0,0,5,0"/>
|
||||
@@ -13,7 +13,11 @@
|
||||
</StackPanel>
|
||||
</Expander.Header>
|
||||
|
||||
<StackPanel>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<UniformGrid Rows="1">
|
||||
<Button Content="{Binding NewPartMsg}" Command="{Binding NewPartCommand}" Height="30"/>
|
||||
@@ -21,7 +25,7 @@
|
||||
<Button Content="{Binding ColorMsg}" Command="{Binding LayerColorCommand}" Height="30"/>
|
||||
</UniformGrid>
|
||||
|
||||
<TreeView x:Name="LayerTreeView" MinHeight="300" MaxHeight="400"
|
||||
<TreeView Grid.Row="1" x:Name="LayerTreeView"
|
||||
ItemsSource="{Binding Path=LayerList}"
|
||||
VirtualizingStackPanel.IsVirtualizing = "True"
|
||||
VirtualizingStackPanel.VirtualizationMode = "Recycling">
|
||||
@@ -116,6 +120,6 @@
|
||||
</ContextMenu>
|
||||
</TreeView.ContextMenu>
|
||||
</TreeView>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Expander>
|
||||
</UserControl>
|
||||
|
||||
@@ -55,6 +55,22 @@ Public Class ManageLayerExpanderVM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_ManageLayerIsExpanded As Boolean
|
||||
Public Property ManageLayerIsExpanded As Boolean
|
||||
Get
|
||||
Return m_ManageLayerIsExpanded
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
m_ManageLayerIsExpanded = value
|
||||
Map.refDrawOptionPanelVM.SetManageLayerRowIsExpanded(m_ManageLayerIsExpanded)
|
||||
OnPropertyChanged("ManageLayerIsExpanded")
|
||||
End Set
|
||||
End Property
|
||||
Friend Sub SetManageLayerIsExpanded(value As Boolean)
|
||||
m_ManageLayerIsExpanded = value
|
||||
OnPropertyChanged("ManageLayerIsExpanded")
|
||||
End Sub
|
||||
|
||||
#Region "Messages"
|
||||
|
||||
Public ReadOnly Property NewPartMsg As String
|
||||
@@ -140,6 +156,7 @@ Public Class ManageLayerExpanderVM
|
||||
Map.SetRefManageLayerExpanderVM(Me)
|
||||
'Imposto tempo di evidenziazione delle entità clickate
|
||||
ObjTreeTimer.Interval = TimeSpan.FromMilliseconds(1000)
|
||||
SetManageLayerIsExpanded(True)
|
||||
End Sub
|
||||
|
||||
#End Region ' Constructor
|
||||
@@ -241,6 +258,7 @@ Public Class ManageLayerExpanderVM
|
||||
If m_nObjTreeOldId <> GDB_ID.NULL Then
|
||||
Map.refProjectVM.SetLastInteger(m_nObjTreeOldId)
|
||||
Map.refProjectVM.ExecuteCommand(Controller.CMD.SETCURRPARTLAYER)
|
||||
Map.refDrawOptionPanelVM.SetInfoRowIsExpanded(True)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user