-migliorata gestione griglia dinamica
This commit is contained in:
@@ -28,12 +28,10 @@ Module DynamicGridModule
|
||||
' 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)
|
||||
@@ -64,12 +62,10 @@ Module DynamicGridModule
|
||||
' 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)
|
||||
@@ -93,9 +89,9 @@ Module DynamicGridModule
|
||||
.Background = Brushes.Transparent
|
||||
}
|
||||
AddHandler gridSplitter.DragCompleted,
|
||||
Sub()
|
||||
SaveGridLayout(If(IsActivePlugin(), PROJECT_EGTCAM5_PLUGIN, PROJECT_EGTCAM5))
|
||||
End Sub
|
||||
Sub()
|
||||
SaveGridLayout(If(IsActivePlugin(), PROJECT_EGTCAM5_PLUGIN, PROJECT_EGTCAM5))
|
||||
End Sub
|
||||
|
||||
Return gridSplitter
|
||||
End Function
|
||||
@@ -112,7 +108,8 @@ Module DynamicGridModule
|
||||
.Width = New GridLength(1, GridUnitType.Star)
|
||||
}
|
||||
Dim gridCol3 As New ColumnDefinition With {
|
||||
.Width = New GridLength(250)
|
||||
.Width = New GridLength(250),
|
||||
.MinWidth = 150
|
||||
}
|
||||
' aggiungo le colonne alla griglia
|
||||
Map.refProjectVM.DynamicGrid.ColumnDefinitions.Add(gridCol1)
|
||||
@@ -168,9 +165,9 @@ Module DynamicGridModule
|
||||
Integer.TryParse(sValueParams(1), nDimType)
|
||||
StringToDoubleAdv(sValueParams(2), GridLenValue)
|
||||
If nDimType = 0 Then
|
||||
Map.refProjectVM.DynamicGrid.ColumnDefinitions(2).Width = New GridLength(GridLenValue)
|
||||
Map.refProjectVM.DynamicGrid.ColumnDefinitions(2).Width = New GridLength(GridLenValue, GridUnitType.Pixel)
|
||||
Else
|
||||
Map.refProjectVM.DynamicGrid.RowDefinitions(IndexRow).Height = If(GridLenValue = 0, New GridLength(1, GridUnitType.Auto), New GridLength(GridLenValue))
|
||||
Map.refProjectVM.DynamicGrid.RowDefinitions(IndexRow).Height = If(GridLenValue = 0, New GridLength(1, GridUnitType.Auto), New GridLength(GridLenValue, GridUnitType.Star))
|
||||
IndexRow += 1
|
||||
End If
|
||||
End If
|
||||
@@ -235,6 +232,12 @@ Module DynamicGridModule
|
||||
Else
|
||||
MachGrid.RowDefinitions(1).Height = New GridLength(GridLenValue)
|
||||
End If
|
||||
Else
|
||||
If RowId = "ManageLayer" Then
|
||||
MachGrid.RowDefinitions(0).Height = New GridLength(400)
|
||||
Else
|
||||
MachGrid.RowDefinitions(1).Height = New GridLength(150)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user