summaryrefslogtreecommitdiff
path: root/Views/Image/ImageControl.xaml
diff options
context:
space:
mode:
Diffstat (limited to 'Views/Image/ImageControl.xaml')
-rw-r--r--Views/Image/ImageControl.xaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/Views/Image/ImageControl.xaml b/Views/Image/ImageControl.xaml
new file mode 100644
index 0000000..c1c176e
--- /dev/null
+++ b/Views/Image/ImageControl.xaml
@@ -0,0 +1,16 @@
+<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="Avalar.Views.Image.ImageControl">
+ <UserControl.Resources>
+ <ImageBrush x:Key="ImageBrush" Source="{Binding Bitmap}" Stretch="Uniform"/>
+ </UserControl.Resources>
+ <Grid>
+ <Canvas Name="ImageCanvas"
+ HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
+ Background="{StaticResource ImageBrush}"
+ PointerWheelChanged="OnPointerWheelChanged"/>
+ </Grid>
+</UserControl>