blob: 2c288f6b451cc6de15b4508a3c0909a8dd659617 (
plain)
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
|
<UserControl 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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.AdvancedImageBox">
<Grid
RowDefinitions="*,Auto"
ColumnDefinitions="*,Auto">
<ContentControl
Name="ViewPort"
Background="Transparent"
/>
<ScrollBar
Name="VerticalScrollBar"
Grid.Row="0" Grid.Column="1"
Orientation="Vertical"
ViewportSize="{Binding #ViewPort.Bounds.Height}"
Minimum="0"
Maximum="0"
Visibility="Auto"
/>
<ScrollBar
Name="HorizontalScrollBar"
Grid.Row="1" Grid.Column="0"
Orientation="Horizontal"
ViewportSize="{Binding #ViewPort.Bounds.Width}"
Minimum="0"
Maximum="0"
Visibility="Auto"
/>
<Border
Grid.Row="1"
Grid.Column="1"
Background="WhiteSmoke"
/>
</Grid>
</UserControl>
|