You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/02-dashboard.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,6 @@ var graph = Controls.LineGraph()
94
94
statsPanel.AddControl(uptimeLabel);
95
95
statsPanel.AddControl(timeLabel);
96
96
statsPanel.AddControl(graph);
97
-
leftCol.AddContent(statsPanel);
98
97
```
99
98
100
99
The graph starts empty — it fills with data points once the async thread starts.
@@ -112,9 +111,10 @@ var logPanel = Controls.ScrollablePanel()
112
111
.WithAutoScroll()
113
112
.WithVerticalAlignment(VerticalAlignment.Fill)
114
113
.Build();
115
-
rightCol.AddContent(logPanel);
116
114
```
117
115
116
+
Column wiring — passing `statsPanel` and `logPanel` into their respective grid columns — happens in the grid builder shown in Step 3 and in the Complete Program.cs below, not in these step snippets.
117
+
118
118
Each log entry is a new control added dynamically via `logPanel.AddControl(...)`. The panel tracks total content height and scrolls automatically.
0 commit comments