|
3 | 3 | Title="Section Box Navigator" Height="670" Width="600" |
4 | 4 | ShowInTaskbar="False" Topmost="True" |
5 | 5 | ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
| 6 | + <Window.Resources> |
| 7 | + <Style TargetType="Button"> |
| 8 | + <Setter Property="BorderThickness" Value="0"/> |
| 9 | + <Setter Property="Height" Value="30"/> |
| 10 | + <Setter Property="Template"> |
| 11 | + <Setter.Value> |
| 12 | + <ControlTemplate TargetType="Button"> |
| 13 | + <Border Background="{TemplateBinding Background}" |
| 14 | + CornerRadius="5" |
| 15 | + Padding="{TemplateBinding Padding}"> |
| 16 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 17 | + </Border> |
| 18 | + </ControlTemplate> |
| 19 | + </Setter.Value> |
| 20 | + </Setter> |
| 21 | + </Style> |
| 22 | + <Style TargetType="GroupBox"> |
| 23 | + <Setter Property="BorderBrush" Value="#F0F0F0"/> |
| 24 | + <Setter Property="BorderThickness" Value="1"/> |
| 25 | + </Style> |
| 26 | + </Window.Resources> |
6 | 27 | <Grid Margin="15"> |
7 | 28 | <Grid.RowDefinitions> |
8 | 29 | <RowDefinition Height="Auto"/> |
|
18 | 39 | <!-- Row 0: Controls --> |
19 | 40 |
|
20 | 41 | <!-- Column 0: Level Navigation + View Alignment --> |
21 | | - <StackPanel Grid.Row="0" Grid.Column="0" Margin="0,0,5,0"> |
| 42 | + <Grid Grid.Row="0" Grid.Column="0" Margin="0,0,5,0"> |
| 43 | + <Grid.RowDefinitions> |
| 44 | + <RowDefinition Height="Auto"/> |
| 45 | + <RowDefinition Height="Auto"/> |
| 46 | + </Grid.RowDefinitions> |
22 | 47 | <!-- Level Navigation Controls --> |
23 | | - <GroupBox Margin="0,0,0,10"> |
| 48 | + <GroupBox Grid.Row="0" Margin="0,0,0,10"> |
24 | 49 | <GroupBox.Header> |
25 | 50 | <StackPanel Orientation="Horizontal"> |
26 | 51 | <TextBlock>🏢</TextBlock> |
|
90 | 115 | </GroupBox> |
91 | 116 |
|
92 | 117 | <!-- 2D View alignment--> |
93 | | - <GroupBox Margin="0,0,0,10"> |
| 118 | + <GroupBox Grid.Row="1" Margin="0,0,0,0"> |
94 | 119 | <GroupBox.Header> |
95 | 120 | <StackPanel Orientation="Horizontal"> |
96 | 121 | <TextBlock>📐</TextBlock> |
97 | 122 | <TextBlock FontWeight="Bold" Margin="5,0,0,0">View alignment</TextBlock> |
98 | 123 | </StackPanel> |
99 | 124 | </GroupBox.Header> |
100 | | - <Button x:Name="btnAlignToView" Content="Align with 2D View" |
101 | | - Height="35" Margin="2" Click="btn_align_box_to_view_click"/> |
| 125 | + <Button x:Name="btnAlignToView" Content="Align 2D View" |
| 126 | + Margin="5" Click="btn_align_box_to_view_click"/> |
102 | 127 | </GroupBox> |
103 | | - </StackPanel> |
| 128 | + </Grid> |
104 | 129 |
|
105 | 130 | <!-- Column 1: Grid Navigation + Expand/Shrink --> |
106 | | - <StackPanel Grid.Row="0" Grid.Column="1" Margin="5,0,0,0"> |
| 131 | + <Grid Grid.Row="0" Grid.Column="1" Margin="5,0,0,0"> |
| 132 | + <Grid.RowDefinitions> |
| 133 | + <RowDefinition Height="Auto"/> |
| 134 | + <RowDefinition Height="Auto"/> |
| 135 | + </Grid.RowDefinitions> |
107 | 136 | <!-- Grid Navigation --> |
108 | | - <GroupBox Margin="0,0,0,10"> |
| 137 | + <GroupBox Grid.Row="0" Margin="0,0,0,10"> |
109 | 138 | <GroupBox.Header> |
110 | 139 | <StackPanel Orientation="Horizontal"> |
111 | 140 | <TextBlock>▦</TextBlock> |
|
189 | 218 | </GroupBox> |
190 | 219 |
|
191 | 220 | <!-- Expansion Controls --> |
192 | | - <GroupBox Margin="0,0,0,10"> |
| 221 | + <GroupBox Grid.Row="1" Margin="0,0,0,10"> |
193 | 222 | <GroupBox.Header> |
194 | 223 | <StackPanel Orientation="Horizontal"> |
195 | 224 | <TextBlock>⬍</TextBlock> |
|
229 | 258 | </Grid> |
230 | 259 | </StackPanel> |
231 | 260 | </GroupBox> |
232 | | - </StackPanel> |
| 261 | + </Grid> |
233 | 262 |
|
234 | 263 | <!-- Row 1: Actions (full width) --> |
235 | 264 | <GroupBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="0,0,0,10"> |
|
238 | 267 | </GroupBox.Header> |
239 | 268 | <UniformGrid Columns="3" Margin="5,0,5,2" HorizontalAlignment="Stretch"> |
240 | 269 | <Button x:Name="btnToggleBox" Content="Toggle Box" |
241 | | - Height="35" Margin="2" Click="btn_toggle_box_click" |
| 270 | + Margin="2" Click="btn_toggle_box_click" |
242 | 271 | MouseEnter="btn_preview_toggle_enter" MouseLeave="btn_preview_leave"/> |
243 | 272 | <Button x:Name="btnHideBox" Content="(Un-)Hide Box" |
244 | | - Height="35" Margin="2" Click="btn_hide_box_click"/> |
| 273 | + Margin="2" Click="btn_hide_box_click"/> |
245 | 274 | <Button x:Name="btnAlignBoxToFace" Content="Align Box" |
246 | | - Height="35" Margin="2" Click="btn_align_box_to_face_click"/> |
| 275 | + Margin="2" Click="btn_align_box_to_face_click"/> |
247 | 276 | </UniformGrid> |
248 | 277 | </GroupBox> |
249 | 278 |
|
250 | 279 | <!-- Row 2: Status Sections --> |
251 | 280 |
|
252 | 281 | <!-- Column 0: Vertical Position Status --> |
253 | | - <GroupBox Grid.Row="2" Grid.Column="0" Margin="0,0,5,10" VerticalAlignment="Stretch"> |
| 282 | + <GroupBox Grid.Row="2" Grid.Column="0" Margin="0,0,5,10" VerticalAlignment="Stretch" Background="#F5F5F5"> |
254 | 283 | <GroupBox.Header> |
255 | 284 | <TextBlock FontWeight="Bold">Vertical Position Status</TextBlock> |
256 | 285 | </GroupBox.Header> |
|
279 | 308 | </Grid.RowDefinitions> |
280 | 309 |
|
281 | 310 | <!-- Grid Navigation Status (top half) --> |
282 | | - <GroupBox Grid.Row="0" VerticalAlignment="Stretch"> |
| 311 | + <GroupBox Grid.Row="0" VerticalAlignment="Stretch" Background="#F5F5F5"> |
283 | 312 | <GroupBox.Header> |
284 | 313 | <StackPanel Orientation="Horizontal"> |
285 | 314 | <TextBlock>▦</TextBlock> |
|
296 | 325 | </GroupBox> |
297 | 326 |
|
298 | 327 | <!-- Expand/Shrink + Actions Status (bottom half) --> |
299 | | - <GroupBox Grid.Row="2" VerticalAlignment="Stretch"> |
| 328 | + <GroupBox Grid.Row="2" VerticalAlignment="Stretch" Background="#F5F5F5"> |
300 | 329 | <GroupBox.Header> |
301 | 330 | <StackPanel Orientation="Horizontal"> |
302 | 331 | <TextBlock>⬍</TextBlock> |
|
0 commit comments