1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
|
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:manager="clr-namespace:Avalonia.ThemeManager;assembly=Avalonia.ThemeManager"
xmlns:uc="clr-namespace:UVtools.WPF.Controls"
xmlns:idc="clr-namespace:Dock.Avalonia.Controls;assembly=Dock.Avalonia"
mc:Ignorable="d" d:DesignWidth="1024" d:DesignHeight="600"
x:Class="UVtools.WPF.MainWindow"
Title="UVtools"
Icon="/Assets/Icons/UVtools.ico"
MinWidth="1024"
MinHeight="600"
DragDrop.AllowDrop="True"
>
<DockPanel>
<Menu DockPanel.Dock="Top">
<MenuItem Name="MainMenu.File" Header="_File">
<MenuItem
Name="MainMenu.File.Open"
Header="_Open"
HotKey="Ctrl+O" InputGesture="Ctrl+O"
Command="{Binding MenuFileOpenClicked}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\open-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="MainMenu.File.OpenNewWindow" Header="Open in _new window" HotKey="Ctrl+Shift+O" InputGesture="Ctrl+Shift+O" Command="{Binding MenuFileOpenNewWindowClicked}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\open-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem
Name="MainMenu.File.Reload"
Header="_Reload"
HotKey="Ctrl+F5" InputGesture="Ctrl+F5"
IsEnabled="{Binding IsFileLoaded}"
Command="{Binding ReloadFile}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\file-refresh-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem
Name="MainMenu.File.Save"
Header="_Save"
HotKey="Ctrl+S" InputGesture="Ctrl+S"
IsEnabled="{Binding CanSave}"
>
<MenuItem.Icon>
<Image Source="\Assets\Icons\save-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="MainMenu.File.SaveAs" Header="Save _as" HotKey="Ctrl+Shift+S" InputGesture="Ctrl+Shift+S" IsEnabled="{Binding IsFileLoaded}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\save-as-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem
Name="MainMenu.File.Close"
Header="_Close"
HotKey="Ctrl+W" InputGesture="Ctrl+W"
IsEnabled="{Binding IsFileLoaded}"
Command="{Binding CloseFile}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\file-close-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem Name="MainMenu.File.Extract" Header="_Extract" HotKey="Ctrl+E" InputGesture="Ctrl+E" IsEnabled="{Binding IsFileLoaded}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\extract-object-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="MainMenu.File.Convert" Header="_Convert to" IsEnabled="{Binding IsFileLoaded}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\convert-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem Name="MainMenu.File.Settings" Header="_Settings" InputGesture="F12" HotKey="F12" Command="{Binding MenuFileSettingsClicked}">
<MenuItem.Icon>
<Image Source="\Assets\Icons\settings-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
<Separator/>
<MenuItem
Name="MainMenu.File.Exit"
Header="_Exit Alt+F4"
InputGesture="Alt+F4"
Command="{Binding Close}"
>
<MenuItem.Icon>
<Image Source="\Assets\Icons\exit-16x16.png"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Header="_Edit">
<MenuItem Header="Copy"/>
<MenuItem Header="Paste"/>
</MenuItem>
</Menu>
<Border Padding="5" DockPanel.Dock="Bottom" Background="WhiteSmoke" IsVisible="{Binding IsFileLoaded}">
<StackPanel
VerticalAlignment="Center"
Orientation="Horizontal"
Spacing="5"
>
<TextBlock Text="{Binding SlicerFile.LayerHeight, StringFormat=Layer height: \{0\}mm}"/>
<TextBlock Text="|"/>
<TextBlock Text="{Binding SlicerFile.BottomLayerCount, StringFormat=Bottom layers: \{0\}}"/>
<TextBlock Text="|"/>
<TextBlock Text="{Binding SlicerFile.BottomExposureTime, StringFormat=Bottom exposure: \{0\}s}"/>
<TextBlock Text="|"/>
<TextBlock Text="{Binding SlicerFile.ExposureTime, StringFormat=Exposure: \{0\}s}"/>
<TextBlock IsVisible="{Binding SlicerFile.PrintTimeHours}"
Text="|"/>
<TextBlock IsVisible="{Binding SlicerFile.PrintTimeHours}"
Text="{Binding SlicerFile.PrintTimeHours, StringFormat=Print time: \{0\}h}"/>
<TextBlock IsVisible="{Binding SlicerFile.UsedMaterial}"
Text="|"/>
<TextBlock IsVisible="{Binding SlicerFile.UsedMaterial}"
Text="{Binding SlicerFile.UsedMaterial, StringFormat=Used material: \{0\}ml}"/>
<TextBlock IsVisible="{Binding SlicerFile.MaterialCost}"
Text="|"/>
<TextBlock IsVisible="{Binding SlicerFile.MaterialCost}"
Text="{Binding SlicerFile.MaterialCost, StringFormat=Material cost: \{0\}ml}"/>
<TextBlock IsVisible="{Binding SlicerFile.MaterialName, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Text="|"/>
<TextBlock IsVisible="{Binding SlicerFile.MaterialName, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Text="{Binding SlicerFile.MaterialName, StringFormat=Material: \{0\}}"/>
<TextBlock IsVisible="{Binding SlicerFile.MachineName, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Text="|"/>
<TextBlock IsVisible="{Binding SlicerFile.MachineName, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Text="{Binding SlicerFile.MachineName, StringFormat=Machine: \{0\}}"/>
</StackPanel>
</Border>
<TabControl
DockPanel.Dock="Left"
Width="400"
SelectedIndex="{Binding TabSelectedIndex}">
<TabItem IsEnabled="{Binding IsFileLoaded}" >
<TabItem.Header>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<Image Source="/Assets/Icons/button-info-16x16.png" Width="16"/>
<TextBlock Margin="5,0,0,0">Information</TextBlock>
</StackPanel>
</TabItem.Header>
<Grid IsVisible="{Binding IsFileLoadeds}" RowDefinitions="Auto,Auto,Auto,*">
<StackPanel Background="WhiteSmoke"
Grid.Row="0"
Orientation="Horizontal"
Spacing="5"
VerticalAlignment="Center">
<Button
IsEnabled="{Binding ThumbnailCanGoPrevious}"
Command="{Binding ThumbnailGoPrevious}"
>
<Image Source="/Assets/Icons/back-16x16.png" Width="16"/>
</Button>
<TextBlock VerticalAlignment="Center">
<TextBlock.Text>
<MultiBinding StringFormat="\{0\}/\{1\}">
<Binding Path="VisibleThumbnailIndex"/>
<Binding Path="SlicerFile.CreatedThumbnailsCount"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
<Button
IsEnabled="{Binding ThumbnailCanGoNext}"
Command="{Binding ThumbnailGoNext}"
>
<Image Source="/Assets/Icons/next-16x16.png" Width="16"/>
</Button>
</StackPanel>
<StackPanel
Grid.Row="0"
Orientation="Horizontal"
Spacing="5"
HorizontalAlignment="Right"
VerticalAlignment="Center">
<TextBlock VerticalAlignment="Center"
Text="{Binding VisibleThumbnailResolution}"/>
</StackPanel>
<Image Grid.Row="1" Source="{Binding VisibleThumbnailImage}"/>
<DataGrid Grid.Row="3"
CanUserReorderColumns="True"
CanUserResizeColumns="True"
CanUserSortColumns="True"
GridLinesVisibility="All"
IsReadOnly="True"
ClipboardCopyMode="IncludeHeader"
Items="{Binding SlicerProperties}">
<DataGrid.Columns>
<DataGridTextColumn Header="Name"
Binding="{Binding Name}"
Width="Auto" />
<DataGridTextColumn Header="Value"
Binding="{Binding Value}"
Width="Auto" />
<DataGridTextColumn Header="Group"
Binding="{Binding Group}"
Width="Auto" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</TabItem>
<TabItem IsVisible="{Binding HaveGCode}">
<TabItem.Header>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<Image Source="/Assets/Icons/code-16x16.png" Width="16"/>
<TextBlock Margin="5,0,0,0">Gcode</TextBlock>
</StackPanel>
</TabItem.Header>
</TabItem>
<TabItem IsEnabled="{Binding IsFileLoaded}" >
<TabItem.Header>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<Image Source="/Assets/Icons/warning-16x16.png" Width="16"/>
<TextBlock Margin="5,0,0,0">Issues</TextBlock>
</StackPanel>
</TabItem.Header>
</TabItem>
<TabItem>
<TabItem.Header>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<Image Source="/Assets/Icons/log-16x16.png" Width="16"/>
<TextBlock Margin="5,0,0,0">Log</TextBlock>
</StackPanel>
</TabItem.Header>
<StackPanel Orientation="Vertical">
<Grid ColumnDefinitions="Auto,Auto,*">
<Button
Grid.Column="0"
Command="{Binding Logs.Clear}">
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/trash-16x16.png" Width="16"/>
<TextBlock Margin="5,0,0,0">Clear</TextBlock>
</StackPanel>
</Button>
<CheckBox
Grid.Column="1"
VerticalAlignment="Center"
ToolTip.Tip="Shows extra information usefull to debug problems."
IsChecked="{Binding IsVerbose}"
Content="Verbose"
Margin="5,0,0,0"
/>
<TextBlock
Grid.Column="2"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Text="{Binding Logs.Count, StringFormat=Operations: \{0\}}"/>
</Grid>
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Center" Orientation="Horizontal">
</StackPanel>
<DataGrid Items="{Binding Logs}"
CanUserReorderColumns="True"
CanUserResizeColumns="True"
CanUserSortColumns="True"
GridLinesVisibility="All"
IsReadOnly="True"
ClipboardCopyMode="IncludeHeader"
>
<DataGrid.Columns>
<DataGridTextColumn Header="#"
Binding="{Binding Index}"
Width="Auto" />
<DataGridTextColumn Header="Started"
Binding="{Binding StartTime}"
Width="Auto" />
<DataGridTextColumn Header="Time(s)"
Binding="{Binding ElapsedTime}"
Width="Auto" />
<DataGridTextColumn Header="Description"
Binding="{Binding Description}"
Width="Auto" />
</DataGrid.Columns>
</DataGrid>
</StackPanel>
</TabItem>
</TabControl>
<Grid
IsEnabled="{Binding IsFileLoaded}"
DockPanel.Dock="Right"
ColumnDefinitions="130"
RowDefinitions="Auto,Auto,*,Auto,Auto,Auto,Auto" Margin="5">
<TextBlock
Text="{Binding MaximumLayerString}"
Name="Layer.Navigation.Up"
Margin="0,0,0,10"
HorizontalAlignment="Center"
TextAlignment="Center"
Grid.Row="0"/>
<RepeatButton
Grid.Row="1"
ToolTip.Tip="Navigate to up layer [Ctrl + Up]"
HotKey="Ctrl + Up"
Interval="100"
IsEnabled="{Binding CanGoUp}"
Command="{Binding GoNextLayer}">
<Image Width="16" Height="16" Source="/Assets/Icons/arrow-up-16x16.png"/>
</RepeatButton>
<Grid Grid.Row="2" ColumnDefinitions="*,16,Auto">
<Panel
Grid.Column="0"
Name="Layer.Navigation.Tooltip.Panel"
Margin="{Binding LayerNavigationTooltipMargin}"
HorizontalAlignment="Left"
>
<Border
Name="Layer.Navigation.Tooltip.Border"
VerticalAlignment="Top"
BorderBrush="AliceBlue"
BorderThickness="5"
CornerRadius="5"
>
<TextBlock Padding="5" Text="{Binding ActualLayerTooltip}"/>
</Border>
</Panel>
<Image
Grid.Column="1"
Name="Layer.Navigation.Issues" Width="16"></Image>
<uc:SliderEx
Grid.Column="2"
Name="Layer.Navigation.Slider"
Minimum="0"
Maximum="{Binding SliderMaximumValue}"
Value="{Binding ActualLayer}"
TickFrequency="1"
TickPlacement="Outside"
SmallChange="1"
LargeChange="10"
IsSnapToTickEnabled="True"
Margin="0,5,0,5"
HorizontalAlignment="Right"
Orientation="Vertical"/>
</Grid>
<RepeatButton
Grid.Row="3"
ToolTip.Tip="Navigate to down layer [Ctrl + Down]"
HotKey="Ctrl + Down"
Interval="100"
IsEnabled="{Binding CanGoDown}"
Command="{Binding GoPreviousLayer}"
>
<Image Width="16" Height="16" Source="/Assets/Icons/arrow-down-16x16.png"/>
</RepeatButton>
<NumericUpDown
Grid.Row="4"
Margin="0,5"
Minimum="0"
Maximum="{Binding SliderMaximumValue}"
Value="{Binding ActualLayer}" />
<Grid Grid.Row="5" RowDefinitions="*" ColumnDefinitions="30,*,30">
<Button
Grid.Column="0"
ToolTip.Tip="Navigate to first layer [Ctrl + Left]"
HotKey="Ctrl + Left"
IsEnabled="{Binding CanGoDown}"
Command="{Binding GoFirstLayer}"
>
<Image Width="16" Height="16" Source="/Assets/Icons/arrow-end-16x16.png"/>
</Button>
<TextBlock
Grid.Column="1"
Text="{Binding MinimumLayerString}"
VerticalAlignment="Center"
HorizontalAlignment="Center"
TextAlignment="Center"/>
<!--
<Button
Grid.Column="1"
Margin="5,0,5,0"
ToolTip.Tip="Navigate to a selected layer [Ctrl + F]"
HotKey="Ctrl + F"
>
<Image Source="/Assets/Icons/search-16x16.png"/>
</Button>
!-->
<Button
Grid.Column="2"
ToolTip.Tip="Navigate to last layer [Ctrl + Right]"
HotKey="Ctrl + Right"
IsEnabled="{Binding CanGoUp}"
Command="{Binding GoLastLayer}"
>
<Image Width="16" Height="16" Source="/Assets/Icons/arrow-top-16x16.png"/>
</Button>
</Grid>
</Grid>
<!--<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<Button Name="zoomtofit">Zoom to fit</Button>
<Button Name="center">Center image</Button>
</StackPanel>-->
<Grid
IsEnabled="{Binding IsFileLoaded}"
ColumnDefinitions="*" RowDefinitions="Auto,*,Auto" Margin="5">
<StackPanel HorizontalAlignment="Left" Grid.Row="0" Orientation="Horizontal" Spacing="1">
<ToggleButton
IsChecked="{Binding ShowLayerImageRotated}"
HotKey="Ctrl+R"
ToolTip.Tip="Auto rotate layer preview image at 90º (This can slow down the layer preview) [CTRL+R]"
>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/undo-alt-16x16.png"/>
<TextBlock Margin="5,0,5,0" Text="Rotate"/>
</StackPanel>
</ToggleButton>
<ToggleButton
IsChecked="{Binding ShowLayerImageDifference}"
ToolTip.Tip="Show layer differences where daker pixels were also present on previous layer and the white pixels the difference between previous and current layer."
>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/layers-16x16.png"/>
<TextBlock Margin="5,0,5,0" Text="Difference"/>
</StackPanel>
</ToggleButton>
<ToggleButton
IsChecked="{Binding ShowLayerImageIssues}"
ToolTip.Tip="Highlight Issues on current layer. Valid only if Issues are calculated."
>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/warning-16x16.png"/>
<TextBlock Margin="5,0,5,0" Text="Issuess"/>
</StackPanel>
</ToggleButton>
<ToggleButton
IsChecked="{Binding ShowLayerImageCrosshairs}"
ToolTip.Tip="Show crosshairs for selected issues on the current layer."
>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/crosshairs-16x16.png"/>
<TextBlock Margin="5,0,5,0" Text="Crossharis"/>
</StackPanel>
</ToggleButton>
<Button
ToolTip.Tip="Click to access the various outlines."
Command="{Binding #LayerPreviewOutlineContextMenu.Open}"
>
<Button.ContextMenu>
<ContextMenu Name="LayerPreviewOutlineContextMenu" PlacementMode="Bottom">
<CheckBox
IsChecked="{Binding ShowLayerOutlinePrintVolumeBoundary}"
Content="Print volume boundary"/>
<CheckBox
IsChecked="{Binding ShowLayerOutlineLayerBoundary}"
Content="Layer boundary"/>
<CheckBox
IsChecked="{Binding ShowLayerOutlineHollowAreas}"
Content="Hollow areas"/>
<CheckBox
IsChecked="{Binding ShowLayerOutlineEdgeDetection}"
Content="Edge detection"/>
</ContextMenu>
</Button.ContextMenu>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/geometry-16x16.png"/>
<TextBlock Margin="5,0,5,0" Text="Outline ⮟"/>
</StackPanel>
</Button>
<ToggleButton
IsChecked="{Binding IsPixelEditorActive}"
ToolTip.Tip="Edit layer image: Draw pixels, add supports and/or drain holes."
>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Icons/pixel-16x16.png"/>
<TextBlock Margin="5,0,5,0" Text="Pixel editor"/>
</StackPanel>
</ToggleButton>
</StackPanel>
<uc:AdvancedImageBox
Grid.Row="1"
GridCellSize="15"
Name="Layer.Image"
/>
<StackPanel Margin="0,5,0,0" Grid.Row="2" Orientation="Horizontal" Spacing="5">
<StackPanel
ToolTip.Tip="Number of pixels to cure on this layer image and the percetange of them against total lcd pixels"
VerticalAlignment="Center" Orientation="Horizontal" Spacing="5">
<Image Source="/Assets/Icons/pixel-16x16.png"/>
<TextBlock Text="{Binding LayerPixelCountStr, StringFormat=Pixels: \{0\}}"/>
</StackPanel>
<Button
ToolTip.Tip="Object volume bounds for current layer, position and size. Click: go to region"
>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Spacing="5">
<Image Source="/Assets/Icons/expand-16x16.png"/>
<TextBlock Text="{Binding LayerBoundsStr, StringFormat=Bounds: \{0\}}"/>
</StackPanel>
</Button>
<Button
ToolTip.Tip="Region of interest selection over layer. (NS): Not selected
Click: go to region | SHIFT + click: Clear ROI"
>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Spacing="5">
<Image Source="/Assets/Icons/object-group-16x16.png"/>
<TextBlock Text="{Binding LayerROIStr, StringFormat=ROI: \{0\}}"/>
</StackPanel>
</Button>
</StackPanel>
<StackPanel Margin="0,5,0,0" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Orientation="Horizontal" Spacing="5">
<Button
IsEnabled="{Binding LayerPixelPicker.IsSet}"
ToolTip.Tip="Pixel picker: Use CONTROL and over a pixel to get his position and brightness. Click: Center at position" >
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Spacing="5">
<Image Source="/Assets/Icons/map-marker-16x16.png"/>
<TextBlock Text="{Binding LayerPixelPicker}"/>
</StackPanel>
</Button>
<Button
ToolTip.Tip="Layer image zoom level, use mouse scroll to zoom in/out into image. Ctrl + 0 OR double right click to scale to fit"
>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Spacing="5">
<Image Source="/Assets/Icons/search-16x16.png"/>
<TextBlock Text="{Binding LayerZoomStr, StringFormat=Zoom: [ \{0\} ]}"/>
</StackPanel>
</Button>
<Button
ToolTip.Tip="Layer Resolution. Click: Zoom to fit"
Command="{Binding ZoomToFit}"
>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Spacing="5">
<Image Source="/Assets/Icons/expand-16x16.png"/>
<TextBlock Text="{Binding LayerResolutionStr}"/>
</StackPanel>
</Button>
<TextBlock
ToolTip.Tip="Layer preview computation time."
VerticalAlignment="Center" Text="{Binding ShowLayerRenderMs, StringFormat=\{0\}ms}"/>
</StackPanel>
</Grid>
</DockPanel>
</Window>
|