Add trace of primitives and material

This commit is contained in:
Evgeny Redikultsev
2024-12-22 21:44:20 +05:00
parent 07370e6fc9
commit f10bcf6350
14 changed files with 511 additions and 116 deletions

View File

@@ -157,13 +157,19 @@ namespace StructureHelper.Windows.CalculationWindows.ProgressViews
{
const int columnWidth = 150;
var rows = tableEntry.Table.GetAllRows();
int rowCount = rows.Count();
int columnCount = tableEntry.Table.RowSize;
var table = new Table();
for (int x = 0; x < columnCount; x++)
{
var tableColumn = new TableColumn();
tableColumn.Width = new GridLength(columnWidth);
if (tableEntry.ColumnWidth[x] > 0d)
{
tableColumn.Width = new GridLength(tableEntry.ColumnWidth[x]);
}
else
{
tableColumn.Width = new GridLength(columnWidth);
}
table.Columns.Add(tableColumn);
}
foreach (var row in rows)

View File

@@ -7,7 +7,7 @@
xmlns:uc="clr-namespace:StructureHelper.Windows.UserControls"
d:DataContext="{d:DesignInstance local:TraceDocumentVM}"
mc:Ignorable="d"
Title="Trace Document Viewer" Height="600" Width="800" MinHeight="400" MinWidth="600" WindowStartupLocation="CenterScreen">
Title="Document Viewer" Height="600" Width="800" MinHeight="400" MinWidth="600" WindowStartupLocation="CenterScreen">
<Grid>
<DockPanel>
<ToolBarTray DockPanel.Dock="Top">