mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 11:11:32 -10:00
46 lines
2.0 KiB
XML
46 lines
2.0 KiB
XML
<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"
|
|
xmlns:dc="using:Mesen.Debugger.Controls"
|
|
xmlns:u="using:Mesen.Utilities"
|
|
mc:Ignorable="d"
|
|
x:Name="root"
|
|
x:Class="Mesen.Debugger.Controls.ScrollPictureViewer"
|
|
>
|
|
<Border BorderBrush="Gray" BorderThickness="1">
|
|
<ScrollViewer
|
|
Name="scrollViewer"
|
|
VerticalScrollBarVisibility="{Binding ScrollBarVisibility, ElementName=root}"
|
|
HorizontalScrollBarVisibility="{Binding ScrollBarVisibility, ElementName=root}"
|
|
AllowAutoHide="False"
|
|
Offset="{Binding ScrollOffset, ElementName=root, Mode=TwoWay}"
|
|
>
|
|
<Border Background="{StaticResource ViewerBgBrush}" HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
<dc:PictureViewer
|
|
x:Name="picViewer"
|
|
PointerPressed="Viewer_PointerPressed"
|
|
PointerMoved="Viewer_PointerMoved"
|
|
Source="{Binding Source, ElementName=root}"
|
|
Zoom="{Binding Zoom, ElementName=root}"
|
|
AllowSelection="{Binding AllowSelection, ElementName=root}"
|
|
ShowMousePosition="{Binding ShowMousePosition, ElementName=root}"
|
|
GridSizeX="{Binding GridSizeX, ElementName=root}"
|
|
GridSizeY="{Binding GridSizeY, ElementName=root}"
|
|
ShowGrid="{Binding ShowGrid, ElementName=root}"
|
|
CustomGrids="{Binding CustomGrids, ElementName=root}"
|
|
SelectionRect="{Binding SelectionRect, ElementName=root}"
|
|
OverlayRect="{Binding OverlayRect, ElementName=root}"
|
|
MouseOverRect="{Binding MouseOverRect, ElementName=root}"
|
|
OverlayLines="{Binding OverlayLines, ElementName=root}"
|
|
GridHighlight="{Binding GridHighlight, ElementName=root}"
|
|
TopClipSize="{Binding TopClipSize, ElementName=root}"
|
|
BottomClipSize="{Binding BottomClipSize, ElementName=root}"
|
|
LeftClipSize="{Binding LeftClipSize, ElementName=root}"
|
|
RightClipSize="{Binding RightClipSize, ElementName=root}"
|
|
/>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</UserControl> |