diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2019-12-15 22:30:38 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2019-12-15 22:30:38 +0100 |
| commit | 0f98b398520a3f5cc6a299e7fd3b8fab494480d7 (patch) | |
| tree | a1c0ab173723c47adf23d7dc5c1894185052cc39 /Views/Image/ImageControl.xaml | |
| download | avalar-0f98b398520a3f5cc6a299e7fd3b8fab494480d7.tar.gz avalar-0f98b398520a3f5cc6a299e7fd3b8fab494480d7.tar.bz2 avalar-0f98b398520a3f5cc6a299e7fd3b8fab494480d7.zip | |
Initial commit, skeleton project.
Diffstat (limited to 'Views/Image/ImageControl.xaml')
| -rw-r--r-- | Views/Image/ImageControl.xaml | 16 |
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> |
